summaryrefslogtreecommitdiff
path: root/source3/sam
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-02-17 14:27:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:40 -0500
commitf51677051cc139bdeb9d66196ca5405cecce1a35 (patch)
tree536ceecd495b125ba73fa0bf622ac91ae5db71ae /source3/sam
parentbc10e4067a0c1985d81e3756c7dd7c23f09c1be0 (diff)
downloadsamba-f51677051cc139bdeb9d66196ca5405cecce1a35.tar.gz
samba-f51677051cc139bdeb9d66196ca5405cecce1a35.tar.bz2
samba-f51677051cc139bdeb9d66196ca5405cecce1a35.zip
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)
Diffstat (limited to 'source3/sam')
-rw-r--r--source3/sam/idmap_ldap.c10
1 files changed, 5 insertions, 5 deletions
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;