Apr 5, 2012
tom

Move samba and ldap config to new machine

Question

I’m not advanced administrator so this may be n00b question but I’ll be grateful for help.

I have following problem: I have to move my server (ubuntu server) from old machine to new. I have samba & ldap on old server, so I’ve copied the configuration files from the old machine to new machine, made smbldap-populate, and when I use smbldap-userlist on the new machine it lists all users from the old machine. But when I try to log in as any of these users, or show its id (id username) I get no such user error.

What more I have to do to use these accounts on the new machnie?

Asked by Mateusz W

Answer

It’s likely you haven’t copied the PAM configuration that actually tells the system to use LDAP to look up users. Take a look in /etc/pam.d on the old system. Depending on the version, you’re looking at system-auth and possibly a few others.

If you have copied these configs, you should be looking at various logs in /var/log for any errors related to PAM. If you do find some and you’re not sure how to proceed, go ahead and update your original question with those log entries.

Answered by Kyle Smith

Related posts:

  1. Configured Linux Machine to Authenticate to LDAP But not working
  2. Provide Samba access based on LDAP info?
  3. Is it possible to pack vmware machine files and move to blu-ray disc?
  4. How to allow a certain group of useres to only login via LDAP while others can use LDAP or local login?
  5. samba: config issues

Leave a comment