From f0b1a1bc9b74372e2af2a48ce9b06802b2198eb4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 20 Oct 2008 16:51:37 -0700 Subject: Remove the requirement for ldap call made as root. Add in security checks for all SAMR calls. Jeremy. --- source3/lib/smbldap.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source3/lib/smbldap.c') diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index f5e152bb95..f2161dc946 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -1025,13 +1025,6 @@ static int smbldap_open(struct smbldap_state *ldap_state) int rc, opt_rc; bool reopen = False; SMB_ASSERT(ldap_state); - -#ifndef NO_LDAP_SECURITY - if (geteuid() != 0) { - DEBUG(0, ("smbldap_open: cannot access LDAP when not root\n")); - return LDAP_INSUFFICIENT_ACCESS; - } -#endif if ((ldap_state->ldap_struct != NULL) && ((ldap_state->last_ping + SMBLDAP_DONT_PING_TIME) < time(NULL))) { -- cgit