Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-11-2015, 05:55 AM   #1
Michal Pastor
LQ Newbie
Registered: Apr 2015
Location: Czech republic
Distribution: Gentoo, Debian, Ubuntu, CentOS
Posts: 17

Rep: Reputation: Disabled
Samba + LDAP Auth

Hello, I have Samba server authenticated against LDAP. Now, I need to add second samba server and authenticate with same credentials. Suggested method is make a PDC from original samba and second samba connect as domain member. This is working great except one thing:

Users logged to their computers to local account can access first samba (PDC) without any additional login (if their local usernames and passweords are same as on LDAP of course), but cannot connect to second server shares (domain member), because this server needs a DOMAIN\login format. I dont want to connect all PCs to the domain, is there a way, how to ignore a domain part of login, or replace it automaticaly with right domain? Windoes PCs are trying to connect with username and password or PCNAME\username and password. I need to accept username without domain, or ignore domain part or automaticaly replace domain part with right domain name.

Thank in advance
Old 06-12-2015, 05:31 AM   #2
Michal Pastor
LQ Newbie
Registered: Apr 2015
Location: Czech republic
Distribution: Gentoo, Debian, Ubuntu, CentOS
Posts: 17

Original Poster
Rep: Reputation: Disabled
OK, I found a solution in one hour after post first message (after two days of searching before).
Add following line to smb.conf do the job
map untrusted to domain = Yes


samba, samba users

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
Samba 3.6.6 with LDAP Auth bighippo999 Linux - Server 0 03-21-2013 11:44 PM
[SOLVED] LDAP -how to disable ldap auth from client side unibox Linux - Server 3 02-07-2012 06:43 AM
Samba auth against a external LDAP server rafa_gallego Linux - Server 1 10-16-2008 03:56 PM
Ldap Radius Auth... tmolise Linux - General 1 11-02-2006 04:12 AM
Samba share auth w/LDAP? cwhitmore SUSE / openSUSE 6 10-04-2006 01:56 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:09 AM.

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