[prev in list] [next in list] [prev in thread] [next in thread]
List: sudo-workers
Subject: [sudo-workers] LDAP Sub Tree Search Patch
From: Tom Judge <tom () tomjudge ! com>
Date: 2006-06-09 8:29:39
Message-ID: 44893173.1080007 () tomjudge ! com
[Download RAW message or body]
Hi all,
I have created a small patch to sudo 1.6.8p12 that makes sudo search all
children recursivly from the sudoers_base search base. Would it be
possible to get this committed to the trunk?
Tom
["sudo.patch" (text/plain)]
--- ldap.c.orig Fri Jun 9 09:14:24 2006
+++ ldap.c Fri Jun 9 09:17:55 2006
@@ -833,7 +833,7 @@
/* Parse Default Options */
- rc=ldap_search_s(ld,ldap_conf.base,LDAP_SCOPE_ONELEVEL,
+ rc=ldap_search_s(ld,ldap_conf.base,LDAP_SCOPE_SUBTREE,
"cn=defaults",NULL,0,&result);
if (!rc && (entry=ldap_first_entry(ld,result))){
if (ldap_conf.debug) printf("found:%s\n",ldap_get_dn(ld,entry));
@@ -871,7 +871,7 @@
filt=strdup("sudoUser=+*");
}
if (ldap_conf.debug) printf("ldap search '%s'\n",filt);
- rc=ldap_search_s(ld,ldap_conf.base,LDAP_SCOPE_ONELEVEL,
+ rc=ldap_search_s(ld,ldap_conf.base,LDAP_SCOPE_SUBTREE,
filt,NULL,0,&result);
if (rc) {
if (ldap_conf.debug) printf("nothing found for '%s'\n",filt);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic