git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
733dc7b
)
r12703: Fix handling of short passdb backends (also reported by Steinar Gunderson)
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 3 Jan 2006 20:26:57 +0000
(20:26 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:49:43 +0000
(13:49 -0500)
(This used to be commit
4c562c42b43d98f4c6bdbacc5cb1dd5e65bc3418
)
source4/scripting/libjs/upgrade.js
patch
|
blob
|
history
diff --git
a/source4/scripting/libjs/upgrade.js
b/source4/scripting/libjs/upgrade.js
index 0ffb790d5f42f8e337431b3a6c770cd2c7a27bb2..51818487eb6b93767c52a2d0112df95da13fab89 100644
(file)
--- a/
source4/scripting/libjs/upgrade.js
+++ b/
source4/scripting/libjs/upgrade.js
@@
-605,8
+605,10
@@
data: %d
var pdb = samba3.configuration.get_list("passdb backend");
if (pdb != undefined) {
for (var b in pdb) {
var pdb = samba3.configuration.get_list("passdb backend");
if (pdb != undefined) {
for (var b in pdb) {
- if (substr(pdb[b], 0, 7) == "ldapsam") {
- ldapurl = substr(pdb[b], 8);
+ if (strlen(pdb[b]) >= 7) {
+ if (substr(pdb[b], 0, 7) == "ldapsam") {
+ ldapurl = substr(pdb[b], 8);
+ }
}
}
}
}
}
}