From f51677051cc139bdeb9d66196ca5405cecce1a35 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 17 Feb 2005 14:27:34 +0000 Subject: r5428: Apply some const. LDAP attribs should now be declared const char *attr[]. This gives some new warnings in smbldap.c, but a the callers are cleaned up. Volker (This used to be commit 543799fc0ddc3176469acc1fab7093c41556d403) --- source3/sam/idmap_ldap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/sam/idmap_ldap.c') diff --git a/source3/sam/idmap_ldap.c b/source3/sam/idmap_ldap.c index 5d6931e52b..b4a8c8a752 100644 --- a/source3/sam/idmap_ldap.c +++ b/source3/sam/idmap_ldap.c @@ -125,7 +125,7 @@ static BOOL sid_in_use(struct ldap_idmap_state *state, fstring sid_string; LDAPMessage *result = NULL; int rc; - char *sid_attr[] = {LDAP_ATTRIBUTE_SID, NULL}; + const char *sid_attr[] = {LDAP_ATTRIBUTE_SID, NULL}; slprintf(filter, sizeof(filter)-1, "(%s=%s)", LDAP_ATTRIBUTE_SID, sid_to_string(sid_string, sid)); @@ -382,7 +382,7 @@ static NTSTATUS ldap_allocate_id(unid_t *id, int id_type) LDAPMod **mods = NULL; const char *type; char *dn = NULL; - char **attr_list; + const char **attr_list; pstring filter; uid_t luid, huid; gid_t lgid, hgid; @@ -493,7 +493,7 @@ static NTSTATUS ldap_get_sid_from_id(DOM_SID *sid, unid_t id, int id_type) int rc; int count; NTSTATUS ret = NT_STATUS_UNSUCCESSFUL; - char **attr_list; + const char **attr_list; if ( id_type & ID_USERID ) type = get_attr_key2string( idpool_attr_list, LDAP_ATTR_UIDNUMBER ); @@ -557,7 +557,7 @@ static NTSTATUS ldap_get_id_from_sid(unid_t *id, int *id_type, const DOM_SID *si const char *type; int rc; int count; - char **attr_list; + const char **attr_list; char *dn = NULL; NTSTATUS ret = NT_STATUS_UNSUCCESSFUL; @@ -667,7 +667,7 @@ static NTSTATUS verify_idpool( void ) { fstring filter; int rc; - char **attr_list; + const char **attr_list; LDAPMessage *result = NULL; LDAPMod **mods = NULL; int count; -- cgit