LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-30-2012, 02:42 PM   #1
designator
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: OpenSUSE Tumbleweed
Posts: 219

Rep: Reputation: 37
Adding computer to SAMBA with LDAP authentication


I've got a strange problem when adding a new computer to the domain.

If computer account does not exist:
1. Windows says account is not there and fails to add computer.
2. SAMBA creates an account on LDAP through smbldap-add.

Second attempt, when computer account exists:
2. Windows says account exists and fails to add computer.

I'm stuck in a permanent loop and I'm not sure what to do. Linux tools seem to be doing what they are supposed to, but I guess Windows doesn't like the return value of smbldap-add?

Thanks for any suggestions.
 
Old 06-01-2012, 12:56 AM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
what does this command give you ? It should pull accounts from ads server so you can know if communication between it and the linux box is cool.Also are you sure you have your smb.conf right?

Quote:
getent passwd
 
Old 06-01-2012, 03:07 PM   #3
designator
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: OpenSUSE Tumbleweed
Posts: 219

Original Poster
Rep: Reputation: 37
I'm only seeing the local accounts, but SAMBA is definitely talking to LDAP because if I try a wrong password when adding a new machine to the domain, it correctly fails to authenticate.
 
Old 06-01-2012, 03:37 PM   #4
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
If your only seeing local accounts then there is a problem communicating with the ADS server.Maybe you missed a step.
 
Old 06-01-2012, 03:42 PM   #5
thehouseofho
LQ Newbie
 
Registered: Jun 2012
Distribution: Mostly Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by designator View Post
I'm only seeing the local accounts, but SAMBA is definitely talking to LDAP because if I try a wrong password when adding a new machine to the domain, it correctly fails to authenticate.
If getent passwd isn't displaying your Windows accounts, it sounds like you need to configure /etc/nsswitch.conf. Your nsswitch.conf file should look something like the below:

passwd: files ldap
group: files ldap
shadow: files ldap

I would also double-check /etc/libnss-ldap.conf or /etc/ldap.conf. It should look something like:

base dc=DOMAIN,dc=com
uri ldaps://LDAPSERVER
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP-based authentication for Samba - help mania2211 Linux - Server 3 07-25-2010 10:30 AM
samba on redhat 9 ldap client authentication ssoteras Linux - Newbie 1 09-06-2006 07:27 AM
windows authentication using ldap/samba pdc procfs Linux - General 2 07-21-2006 09:25 AM
Linux authentication to Netware 6.5 via LDAP - Samba .. Firebar Linux - Enterprise 0 06-07-2006 05:35 AM
LXer: LDAP-Based Authentication for Samba LXer Syndicated Linux News 0 02-02-2006 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration