summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-11 23:02:52 +0000
committerJeremy Allison <jra@samba.org>2004-03-11 23:02:52 +0000
commitd1189b812172a98cda86d0c9615edbae50ec67a6 (patch)
tree349e0a6a336c8f59f5e82990b119f3986f1f402b
parent39c731347045dc345862d527871ae5b9a4619e74 (diff)
downloadsamba-d1189b812172a98cda86d0c9615edbae50ec67a6.tar.gz
samba-d1189b812172a98cda86d0c9615edbae50ec67a6.tar.bz2
samba-d1189b812172a98cda86d0c9615edbae50ec67a6.zip
Fix bug introduced by Jim (touche :-) :-) - use new smbldap_get_single_pstring
call :-). Jeremy. (This used to be commit 3c9fd2bdee097394cb0d0b6683748835c6a2d3a0)
-rw-r--r--source3/param/config_ldap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/param/config_ldap.c b/source3/param/config_ldap.c
index 1413fe158c..fe4693fb58 100644
--- a/source3/param/config_ldap.c
+++ b/source3/param/config_ldap.c
@@ -109,13 +109,13 @@ static NTSTATUS parse_section(
while (entry) {
int o;
- if (!smbldap_get_single_attribute(ldap_state.smbldap_state->ldap_struct, entry, "sambaOptionName", option_name)) {
+ if (!smbldap_get_single_pstring(ldap_state.smbldap_state->ldap_struct, entry, "sambaOptionName", option_name)) {
goto done;
}
option_value[0] = '\0';
for (o = 1; option_attr_list[o].name != NULL; o++) {
- if (smbldap_get_single_attribute(ldap_state.smbldap_state->ldap_struct, entry, option_attr_list[o].name, option_value)) {
+ if (smbldap_get_single_pstring(ldap_state.smbldap_state->ldap_struct, entry, option_attr_list[o].name, option_value)) {
break;
}
}
@@ -198,7 +198,7 @@ static NTSTATUS ldap_config_load(
entry = ldap_first_entry(ldap_state.smbldap_state->ldap_struct, result);
- if (!smbldap_get_single_attribute(ldap_state.smbldap_state->ldap_struct, entry, "description", attr_text)) {
+ if (!smbldap_get_single_pstring(ldap_state.smbldap_state->ldap_struct, entry, "description", attr_text)) {
DEBUG(0, ("ldap_config_load: no description field in %s object\n", LDAP_OBJ_SAMBA_CONFIG));
}
@@ -237,7 +237,7 @@ static NTSTATUS ldap_config_load(
if (!(temp = smbldap_get_dn(ldap_state.smbldap_state->ldap_struct, entry))) {
goto done;
}
- if (!smbldap_get_single_attribute(ldap_state.smbldap_state->ldap_struct, entry, "sambaShareName", attr_text)) {
+ if (!smbldap_get_single_pstring(ldap_state.smbldap_state->ldap_struct, entry, "sambaShareName", attr_text)) {
goto done;
}
share_dn[i] = talloc_strdup(mem_ctx, temp);