git.samba.org
/
jelmer
/
openchange.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
275148e
)
Fixed list index issue when element is not found
author
Wolfgang Wourdeau
<wsourdeau@inverse.ca>
Wed, 5 Oct 2011 16:38:43 +0000
(16:38 +0000)
committer
Wolfgang Wourdeau
<wsourdeau@inverse.ca>
Wed, 5 Oct 2011 16:38:43 +0000
(16:38 +0000)
python/openchange/provision.py
patch
|
blob
|
history
diff --git
a/python/openchange/provision.py
b/python/openchange/provision.py
index effc3da5a605fe4fbfcfbbf2c3fb9ca910f46a05..8fe0c32e4bc8cb06de64434472bb6367d2629c92 100644
(file)
--- a/
python/openchange/provision.py
+++ b/
python/openchange/provision.py
@@
-434,8
+434,8
@@
def newuser(lp, creds, username=None):
names = guess_names_from_smbconf(lp, None, None)
- if
dir(lp).index("samdb_url") > -1
: # samba 4a17
-samDb = lp.samdb_url()[6:]
+ if
"samdb_url" in dir(lp)
: # samba 4a17
+
samDb = lp.samdb_url()[6:]
else:
samDb = os.path.join(lp.get("private dir"), lp.get("sam database"))
db = Ldb(url=samDb,