1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

r12703: Fix handling of short passdb backends (also reported by Steinar Gunderson)

(This used to be commit 4c562c42b4)
This commit is contained in:
Jelmer Vernooij
2006-01-03 20:26:57 +00:00
committed by Gerald (Jerry) Carter
parent 733dc7b073
commit 65bf7621d9

View File

@ -605,8 +605,10 @@ data: %d
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);
}
}
}
}