Re: [Samba] Samba 4 - nslcd setup on Debian

2013-09-04 Thread steve
On Wed, 2013-09-04 at 17:53 +0100, Chris Alavoine wrote:
 Hi folks,
 
 Have been battling with this for a while.
 
 I have a Debian 6/Samba 4 install working nicely. Have migrated my old
 Samba 3 domain and can see all users/groups via AD management tools fine.
 
 I am now trying to get the *nix side sorted. Have followed the guide here:
 
 https://wiki.samba.org/index.php/Local_user_management_and_authentication/nslcd
 
 Which works up to a point. All users and groups and visible with getent
 etc, but any new user that are created are not seen. Any existing
 user/group updates are reflected but if I create a new user and then do
 
 getent group | grep user
 
 I get nothing, same with id -Gn user or groups user.
 
 If I do:
 
 samba-tool user list | grep user
 
 The user is found and I can see it using RSAT tools from a Windows Server
 2008 R2 box.
 
 Any suggestions?

Your old users had rfc2307 attributes but your new ones do not. When you
create the new user, you have to give him rfc2307 attributes such as
uidNumber and gidNumber. In later releases, you can use samba-tool to do
this. Otherwise you can use ldbedit or ldbmodify. I doubt whether your
debian install is recent enough. There are scripts here:
http://linuxcostablanca.blogspot.com.es/p/s4bind.html
I'd recommend building from source.
HTH
Steve




-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba 4 - nslcd setup on Debian

2013-09-04 Thread Chris Alavoine
Hi folks,

Have been battling with this for a while.

I have a Debian 6/Samba 4 install working nicely. Have migrated my old
Samba 3 domain and can see all users/groups via AD management tools fine.

I am now trying to get the *nix side sorted. Have followed the guide here:

https://wiki.samba.org/index.php/Local_user_management_and_authentication/nslcd

Which works up to a point. All users and groups and visible with getent
etc, but any new user that are created are not seen. Any existing
user/group updates are reflected but if I create a new user and then do

getent group | grep user

I get nothing, same with id -Gn user or groups user.

If I do:

samba-tool user list | grep user

The user is found and I can see it using RSAT tools from a Windows Server
2008 R2 box.

Any suggestions?

Thanks,
Chris.

-- 
ACS (Alavoine Computer Services Ltd)
Chris Alavoine
mob +44 (0)7724 710 730
www.alavoinecs.co.uk
http://twitter.com/#!/alavoinecs
http://www.linkedin.com/pub/chris-alavoine/39/606/192
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba