here is my ldif file : dn: cn=admin,dc=netc,dc=net objectclass: sambaSamAccount cn: admin o: netc uid : 0 mail: [EMAIL PROTECTED] sn: Administrateur
then ldapadd. "id admin" doesnt seem to work... My computer is in my LDAP yet. all permissions are good. Even more than 644... thx for your patience, Guillaume On 5/17/05, Mark Roach <[EMAIL PROTECTED]> wrote: > chuchyyy wrote: > > Yea that's right. But i can connect to the LDAP server with this > > administrator. I can create account with smbldap-useradd -a. > > How can i say to the LDAP server and Samba that the user is the > > administrator to use for connect Windows to the domain? My > > samba.schema is in my slapd.conf. > > The only way a user can add computer accounts to the domain is if that > user's uidNumber=0. So it seems like there are two things you need to do: > > 1: Create a user account with uid: 0, objectClass: sambaSAMAccount > 2: Ensure that that user is visible through 'id username' > 3: Make sure that that account has permissions to write to the LDAP > tree, (whoops that was three) > > There are a variety of reasons why your users are not showing up to the > system. The main places to check though, are your /etc/libnss-ldap.conf > and the slapd.conf permissions > > Assuming your ldap server is on the local machine, all libnss-ldap.conf > needs to have in it is: > host 127.0.0.1 > base dc=yourdomain,dc=com > ldap_version 3 > > also, make sure the permissions on libnss-ldap.conf are -rw-r--r-- > > -Mark >