search for: lp_domain_admin_group

Displaying 2 results from an estimated 2 matches for "lp_domain_admin_group".

2004 Mar 15
0
join domain without root
..._become_root = 0; + if (geteuid()) { + struct passwd* pass; + /* Should we use current_user->uid, or current_user->conn->uid + * and current_user->conn->user, for any of this? */ + if ( (pass=sys_getpwuid(geteuid())) != NULL ) { + if ( user_in_list(pass->pw_name, lp_domain_admin_group()) ) { + do_become_root = 1; + DEBUG(1, ("set_user_info_pw: EUID %d for rid=%d(=0x%x), with become_root\n", geteuid(), rid, rid)); + } + } + } + + if (do_become_root) become_root(); + ret = pdb_getsampwrid(pwd, rid); + if (do_become_root) unbecome_root(); + if (ret != True) {...
2003 Sep 16
4
smbldap.c
Hi ! I was just wondering if that piece of code was important (for security and such), because I had to comment it in smbldap.c before compiling samba-3.0; otherwise, I would have errors like: "(Insufficient access)smbldap_open: cannot access LDAP when not root" #ifndef NO_LDAP_SECURITY if (geteuid() != 0) { DEBUG(0, ("smbldap_open: cannot access LDAP