I don't see much documentation on this, so I though I would write a quick HOWTO to join a linux box (ubuntu in the case) to an ebox samba domain. This is intended to be a rough draft, please feel free to add to it, perhaps we can find a more appropriate place like the wiki soon.
SERVER (EBOX):
1. Create a user with admin rights (Ex: admin)....remember the password!
2. Enable Samba as PDC
3. Gather the following info:
Base dn: dc=ebox
Admin dn: cn=admin,dc=ebox
Admin Pass: ebox2611130574 (This may vary...verify in /etc/ldap/slapd.conf)
Domain Name: EBOX (Whatever you set it to when you setup Samba as PDC)
Ebox Server IP/hostname: 192.168.1.1 (If you setup dns a
hostname.domain would be better but an IP will work)
Client (DESKTOP-PC):
1. Install samba, ldap, etc...see ubuntu instructions:
https://help.ubuntu.com/community/LDAPClientAuthentication2. copy your old smb.conf to a safe place
cp /etc/samba/smb.conf{,.orig}
3. Edit smb.conf. Erase everything and add the following:
[global]
unix charset = LOCALE
workgroup = EBOX
security = DOMAIN
log level = 1
syslog = 0
log file = /var/log/samba/%m
max log size = 50
smb ports = 137 138 139 445
name resolve order = wins bcast hosts
printcap name = CUPS
wins server = 192.168.1.1
ldap admin dn = cn=admin,dc=ebox
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Users
ldap suffix = dc=ebox
ldap user suffix = ou=Users
idmap backend = ldap:ldap://192.168.1.1
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind trusted domains only = Yes
printing = cups
print command =
lpq command = %p
lprm command =
4. Test your new config.
#testparm
...you should see
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
5. Restart Samba.
/etc/init.d/samba restart
6. Join the domain
net join -U admin
Password: [admin password]
You should then see.
Joined domain EBOX
7. That's it...welcome to the EBOX domain!