1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-25 00:59:11 +03:00

r26629: python: Improve documentation in various places.

(This used to be commit ee71a27bca)
This commit is contained in:
Jelmer Vernooij
2007-12-29 18:14:18 -06:00
committed by Stefan Metzmacher
parent 6817c5d885
commit 2bd4bf6a1b
3 changed files with 50 additions and 17 deletions

View File

@ -23,6 +23,7 @@ import security
from ldb import Dn, SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE, LdbError, \
LDB_ERR_NO_SUCH_OBJECT, timestring, CHANGETYPE_MODIFY, CHANGETYPE_NONE
"""Functions for setting up a Samba configuration."""
DEFAULTSITE = "Default-First-Site-Name"
@ -53,7 +54,12 @@ class ProvisionPaths:
def install_ok(lp, session_info, credentials):
"""Check whether the current install seems ok."""
"""Check whether the current install seems ok.
:param lp: Loadparm context
:param session_info: Session information
:param credentials: Credentials
"""
if lp.get("realm") == "":
return False
ldb = Ldb(lp.get("sam database"), session_info=session_info,