Skip to content
Advertisement

Join Windows 7 to SAMBA+LDAP PDC

In my smb.cfg I have follow command for adding machine user to my PDC server:

JavaScript

When I want to join new Win7 machine to my PDC with root user (this is default configuration) I got follow message:

JavaScript

I tried adding follows, but without success (same error message)

JavaScript

Note:

If I run command manually: /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false "flab001$" in command line with root permissions, I can join machine without any problem! And I can login in windows machine with other users (LDAP+SAMBA users).

So, in this case, I think, but I’m not 100% sure, this is permission problem when adding new machines. Anybody know how to resolve this issue, please?

Advertisement

Answer

Yes, problem was with permissions, who can add new posix/ldap user. By default LDAP user (via SAMBA) cannot manage users on Linux and I added configuration SSSD for ldap access and define permissions and rules.

On opensuse it is very easy via Yast2->Authentication Client, on other distribution user should use command line and edit /etc/sssd/sssd.conf file with appropriate parameters. Of course if user use command line, have not forgot adapt /etc/nsswitch.conf file, specially parameters: passwd: compat sss group: compat sss and file /etc/ldap.conf

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement