summaryrefslogtreecommitdiff
path: root/source3/sam/idmap_ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/sam/idmap_ldap.c')
-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;