LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-28-2013, 09:37 AM   #1
grahamb314
LQ Newbie
 
Registered: Apr 2011
Posts: 16

Rep: Reputation: Disabled
uid's not consistent over servers - samba4 & winbind


I'm using samba4 winbind to setup central authentication from my active directory domain.
this works on all servers, but the uid's are slightly different on for each user on different servers. I need each user to have the same uid on every server for specific uses.

I've followed this: http://wiki.centos.org/TipsAndTricks/WinbindADS
(Specifically the last section, but it doesn't change anything)

my /etc/samba/smb.conf file before all the changes:

Code:
workgroup = DOMAIN
password server = dc01.domain.local
realm = DOMAIN.LOCAL
security = ads
idmap config * : range = 16777216-33554431
template homedir = /home/%U
template shell = /bin/bash
winbind use default domain = true
winbind offline logon = yes
I hear that I should share the IDMAP file, but don't know how I go about doing this

Last edited by grahamb314; 06-28-2013 at 03:11 PM.
 
Old 06-29-2013, 02:35 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Consistent ID mapping across multiple servers requires a common backend. The article you link to covers that topic here. You may want to look at the ID mapping section of the official Samba documentation.
 
Old 07-03-2013, 03:44 AM   #3
grahamb314
LQ Newbie
 
Registered: Apr 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Consistent ID mapping across multiple servers requires a common backend. The article you link to covers that topic here. You may want to look at the ID mapping section of the official Samba documentation.
Thanks,

I solved this by adding these 2 lines into my sbm.conf file

Code:
idmap config * :backend      =rid
idmap config * :base_rid     = 0

then flushing the cache:
Code:
net cache flush
and restarting smb and winbind services
 
  


Reply



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
[SOLVED] CentOS servers with Winbind not showing up in Active Directory theace18 Linux - Server 1 06-25-2013 10:57 AM
Directory / file ownership intermittenly revert back to nobody or UID (Winbind? Samba? NFS?) tzone Linux - Security 0 02-06-2013 01:44 AM
Winbind Losing UID & GID Mappings Cyberitas Linux - Enterprise 1 12-22-2007 07:29 AM
Iptables & UID issues craftybytes Linux - Security 2 10-01-2006 08:04 PM
Winbind and Samba 3.0 -- duplicate UID's phil1076 Linux - General 4 12-16-2003 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 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