summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-20 16:51:37 -0700
committerJeremy Allison <jra@samba.org>2008-10-20 16:51:37 -0700
commitf0b1a1bc9b74372e2af2a48ce9b06802b2198eb4 (patch)
treeb7b20faa5b6c1cbe0f67600d36862b6ea782d742 /source3/lib
parent29c9b88e2bb5d3f585e7aa591870e8b39a0d23c9 (diff)
downloadsamba-f0b1a1bc9b74372e2af2a48ce9b06802b2198eb4.tar.gz
samba-f0b1a1bc9b74372e2af2a48ce9b06802b2198eb4.tar.bz2
samba-f0b1a1bc9b74372e2af2a48ce9b06802b2198eb4.zip
Remove the requirement for ldap call made as root. Add in security
checks for all SAMR calls. Jeremy.
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbldap.c7
1 files changed, 0 insertions, 7 deletions
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))) {