b928d72e02
- Fix security problem up fixed by 2.2.12 and recent problem reported by CAN-2004-1154. - pkgsrc changes: * Overhaul pkgsrc structure (as net/samba). * Adapt PKG_OPTIONS frame work. * Add support for winbind (not tested). * Add SAMBA_USER/SAMBA_GROUP for default user. * move codepages directory from share/samba to lib/samba.
39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
$NetBSD: patch-bh,v 1.1 2005/06/19 18:38:40 taca Exp $
|
|
|
|
--- passdb/pdb_ldap.c.orig 2005-03-02 14:33:12.000000000 +0900
|
|
+++ passdb/pdb_ldap.c
|
|
@@ -296,14 +296,14 @@ static int rebindproc (LDAP *ldap_struct
|
|
memset(*credp, '\0', strlen(*credp));
|
|
SAFE_FREE(*credp);
|
|
} else {
|
|
- *whop = strdup(ldap_state->bind_dn);
|
|
+ *whop = SMB_STRDUP(ldap_state->bind_dn);
|
|
if (!*whop) {
|
|
return LDAP_NO_MEMORY;
|
|
}
|
|
DEBUG(5,("ldap_connect_system: Rebinding as \"%s\"\n",
|
|
whop));
|
|
|
|
- *credp = strdup(ldap_secret);
|
|
+ *credp = SMB_STRDUP(ldap_secret);
|
|
if (!*credp) {
|
|
SAFE_FREE(*whop);
|
|
return LDAP_NO_MEMORY;
|
|
@@ -517,7 +517,7 @@ static void make_a_mod (LDAPMod *** modl
|
|
}
|
|
mods[i]->mod_op = modop;
|
|
mods[i]->mod_values = NULL;
|
|
- mods[i]->mod_type = strdup(attribute);
|
|
+ mods[i]->mod_type = SMB_STRDUP(attribute);
|
|
mods[i + 1] = NULL;
|
|
}
|
|
|
|
@@ -533,7 +533,7 @@ static void make_a_mod (LDAPMod *** modl
|
|
DEBUG (0, ("make_a_mod: Memory allocation failure!\n"));
|
|
return;
|
|
}
|
|
- mods[i]->mod_values[j] = strdup(value);
|
|
+ mods[i]->mod_values[j] = SMB_STRDUP(value);
|
|
mods[i]->mod_values[j + 1] = NULL;
|
|
}
|
|
*modlist = mods;
|