Hi,
> I am also struggling to find up to date information on using Samba 4 with
> linux clients. I have managed to get the RFC 2307 fields by installing the
> 'NIS tools' feature on a W2k8 DC, and creating a 'NIS domain'. Previously I
> could see the fields, but could not select a NIS domain in the ADUC tool to
> make the RFC 2307 fields enabled.
I was successful in using Samba4 AD with Ubuntu 12.04 (precise) clients
using winbind (in nsswitch and pam) and kerberos (pam-krb5)
the relevant changes (to the default config are):
/etc/krb5.conf
proxiable = false
/etc/samba/smb.conf
workgroup = YOUR_WORKGROUP
realm = YOUR_REALM
kerberos method = system keytab
security = ads
winbind enum groups = yes
winbind enum users = yes
idmap config *:backend = tdb
idmap config *:range = 2000001-3000000
idmap config YOUR_WORKGROUP:default = yes
idmap config YOUR_WORKGROUP:backend = ad
idmap config YOUR_WORKGROUP:range = 0-2000000
idmap config YOUR_WORKGROUP:schema_mode = rfc2307
winbind nss info = rfc2307
winbind expand groups = 2
winbind nested groups = yes
winbind use default domain = yes
/etc/nsswitch.conf
passwd: files winbind
group: files winbind
pam-auth-update took care of pam configuration (I had to do only afs
homedirs related changes, irrelevant if you don't use afs)
winbind pulls correctly all the information for the users and group
which have been posixified.
However with the same config on debian squeeze or wheezy I receive only
a part of the group memberships, and other nastiness (e.g. getent group
and id for a group member give different results)
> I'm also trying to find out the correct way to add the autohome nis map. I
> have tried:
>
> ldbmodify -H /usr/local/samba/private/sam.ldb automount_template.ldif
You shouldn't modify the sam.ldb directly while samba is running instead
would suggest to use ldbmodify -H ldap://your-ad.server ....
> --option="dsdb:schema update allowed"=true
>
> But this seemed to fail. I have thought I might need to use the Microsoft
> schema management tool to add the automount schema.
>
Regards
Geza Gemes