[ldap-SAMBA_2_2] join XP to the PDC and geteuid troubles

Ignacio Coupeau icoupeau at unav.es
Sat Mar 2 02:18:01 GMT 2002


I found that the XP fails joining to the domain samba_2_2 (2002/03/01) 
if the administrative account is other than root.
I think the reason is the geteuid() call (see below the 
ldap_open_connection ).

No problem is detected with NT WS because no administrative account is 
required for the join.

In the SAMBA_HEAD this check is not performed and don't fails.

Is this a bug?

Ignacio
---

static BOOL ldap_open_connection (LDAP ** ldap_struct)
{
         int port;
         int version, rc;
         int tls = LDAP_OPT_X_TLS_HARD;

         if (geteuid() != 0) {
                 DEBUG(0, ("ldap_open_connection: cannot access LDAP 
when not root..\n"));
                 return False;
         }
-- 
____________________________________________________
Ignacio Coupeau, Ph.D.     e-mail: icoupeau at unav.es
CTI, Director              fax:    948 425619
University of Navarra      voice:  948 425600
Pamplona, SPAIN            http://www.unav.es/cti/





More information about the samba-technical mailing list