summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-05 11:20:21 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-10 09:19:04 +0200
commit966faef9c61d2ec02d75fc3ccc82a61524fb77e4 (patch)
tree7650f21b43653e0f49291332e93a1269bbcd99d6 /source4/ldap_server
parentc81b6f7448d7f945635784de645bea4f7f2e230f (diff)
downloadsamba-966faef9c61d2ec02d75fc3ccc82a61524fb77e4.tar.gz
samba-966faef9c61d2ec02d75fc3ccc82a61524fb77e4.tar.bz2
samba-966faef9c61d2ec02d75fc3ccc82a61524fb77e4.zip
auth/gensec: treat struct gensec_security_ops as const if possible.
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_backend.c b/source4/ldap_server/ldap_backend.c
index 42185316da..2760cdb470 100644
--- a/source4/ldap_server/ldap_backend.c
+++ b/source4/ldap_server/ldap_backend.c
@@ -192,8 +192,8 @@ NTSTATUS ldapsrv_backend_Init(struct ldapsrv_connection *conn)
if (conn->server_credentials) {
char **sasl_mechs = NULL;
- struct gensec_security_ops **backends = gensec_security_all();
- struct gensec_security_ops **ops
+ const struct gensec_security_ops * const *backends = gensec_security_all();
+ const struct gensec_security_ops **ops
= gensec_use_kerberos_mechs(conn, backends, conn->server_credentials);
unsigned int i, j = 0;
for (i = 0; ops && ops[i]; i++) {