Index: lib/smbldap.c =================================================================== --- lib/smbldap.c (revision 9284) +++ lib/smbldap.c (working copy) @@ -1346,7 +1346,7 @@ Check if root-dse has a certain Control or Extension ********************************************************************/ -static BOOL smbldap_check_root_dse(struct smbldap_state *ldap_state, const char **attrs, const char *value) +static BOOL smbldap_check_root_dse(struct smbldap_state *ldap_state, char **attrs, const char *value) { LDAPMessage *msg = NULL; LDAPMessage *entry = NULL; @@ -1424,7 +1424,7 @@ BOOL smbldap_has_control(struct smbldap_state *ldap_state, const char *control) { - const char *attrs[] = { "supportedControl", NULL }; + char *attrs[] = { "supportedControl", NULL }; return smbldap_check_root_dse(ldap_state, attrs, control); } @@ -1434,7 +1434,7 @@ BOOL smbldap_has_extension(struct smbldap_state *ldap_state, const char *extension) { - const char *attrs[] = { "supportedExtension", NULL }; + char *attrs[] = { "supportedExtension", NULL }; return smbldap_check_root_dse(ldap_state, attrs, extension); } @@ -1444,6 +1444,6 @@ BOOL smbldap_has_naming_context(struct smbldap_state *ldap_state, const char *naming_context) { - const char *attrs[] = { "namingContexts", NULL }; + char *attrs[] = { "namingContexts", NULL }; return smbldap_check_root_dse(ldap_state, attrs, naming_context); }