LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


LinkBack Search this Thread
Old 11-30-2006, 03:14 PM   #1
LQ Newbie
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Samba 3.0.22 Local Profiles Inconsistent with BDC


This is my first post, apologies for any potential logic gaps.

I've recently deployed a Samba 3.0.22 BDC with LDAP. Our current PDC is running Samba 3.0.23d Tdbsam. (My future goal is to move to a completely LDAP system, this is an intermediate step)

We don't use roaming profiles.

The problem is: When a user logs on through the BDC instead of the PDC, they get a new local profile instead of the original local profile they've been for a while now. If the user authenticates via the PDC, they are logged on with their original profile. How do I get it so that the user gets the same profile regardless of logging onto the BDC or PDC.

It appears that re-joining the client to the domain solves this issue, but I don't have the time to go through to the 300+ machines by myself.

I suspect the problem might be a flawed migration between the PDC and BDC. My migration simply takes all the information given by 'pdbedit -Lv' and for each entry adds a new user by smbldap-useradd on the BDC machine. I've also hacked the smbldap-useradd script to allow me to copy over the NT and LM password hashes so users can log on to the BDC without having to rejoin the domain. I was also careful to preserve logon scripts, profile paths, but SID's are different for users.

Any ideas what the problem might be? How does the client XP machine even know it's logged onto a different server?

I've attached the smb.conf and smbldap.conf for the BDC below

Thanks in advance!
Jack C Yu
A Hungry Undergrad of UCB

BDC smb.conf:

unix charset = ISO8859-1
workgroup = CNR-DOM2
server string = G42-6 Samba PDC (with LDAP) [Gentoo Linux - Samba %v]
interfaces = eth0
bind interfaces only = Yes
passdb backend = ldapsam:ldap://localhost
enable privileges = Yes
log level = 2
log file = /var/log/samba/log.%m
max log size = 50
name resolve order = wins host lmhosts
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user script = /etc/samba/scripts/ u a -m "%u"
delete user script = /etc/samba/scripts/ u d "%u"
add group script = /etc/samba/scripts/ g a -p "%g"
delete group script = /etc/samba/scripts/ g d "%g"
add user to group script = /etc/samba/scripts/ g m -m "%u" "%g"
delete user from group script = /etc/samba/scripts/ g m -x "%u" "%g"
set primary group script = /etc/samba/scripts/ u m -g "%g" "%u"
add machine script = /etc/samba/scripts/ u a -w "%u"
logon path =
logon home =
domain logons = Yes
os level = 65
preferred master = No
domain master = No
dns proxy = No
wins server =
ldap admin dn = cn=samba,ou=DSA,dc=cnr,dc=berkeley,dc=edu
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
ldap suffix = dc=cnr,dc=berkeley,dc=edu
ldap ssl = start tls
ldap timeout = 30
ldap user suffix = ou=People
passdb expand explicit = No
idmap backend = ldap://localhost
idmap uid = 10000-30000
idmap gid = 10000-30000
hosts allow =,,,,,,,,,,,,,,,,,,,,,,,,,,,,
hide unreadable = Yes

path = /var/lib/samba/netlogon
browseable = No

BDC smbldap.conf

userGecos="System User"
Old 12-01-2006, 02:15 AM   #2
LQ Newbie
Registered: Sep 2003
Location: Australia
Distribution: Smooth, Deb, Ubu, KNX, RH mainly
Posts: 25

Rep: Reputation: 15

both servers need identical

profile path = ......

directives (point to same resource (not same path on different systems)

Good Luck
Old 12-01-2006, 02:52 PM   #3
LQ Newbie
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks eendoe,

Wouldn't specifying a profile path = ... directive to some shared resource be implementing roaming profiles? Or is there no way to avoid roaming profiles when one wants to have a BDC and PDC together?
Old 12-01-2006, 03:14 PM   #4
LQ Newbie
Registered: Sep 2003
Location: Australia
Distribution: Smooth, Deb, Ubu, KNX, RH mainly
Posts: 25

Rep: Reputation: 15
Smile misread question

sorry, i misread your question, i thought that you wanted identical roaming profiles from both DC's.

Have a look in documents and settings on your windows hosts.

You will most likey see profile names starting with different servers/netbios domains. This will give you an indication of what is happening.

2. I'm not sure if you can override these with a client path?
profile path = C:\Document and Settings\%U (probrably won't work.

3. I suspect the root of your issues caused by this;

"but SID's are different for users"

Try implementing a fully centralised user authentication (point your PDC to the LDAP database)

Good luck
Old 12-18-2006, 03:18 PM   #5
LQ Newbie
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, problem fixed =]

Turns out I was running two different versions of Samba on the servers. Updated both servers to run Samba 3.0.23d and all works well.

Also, I made sure that I had the same SID's for all users on both machines.

I made a note that it is much easier to use pdbedit -e tdbsam:filename from the source machine and then do pdbedit -i tdbsam:filename on the machine I'm migrating to.

Thanks again eendoe,
Old 12-19-2006, 04:43 AM   #6
LQ Newbie
Registered: Sep 2003
Location: Australia
Distribution: Smooth, Deb, Ubu, KNX, RH mainly
Posts: 25

Rep: Reputation: 15
You deserve all the kudos here my friend. Bliss.


linux, networking, samba

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
inconsistent response to netbios aliases on samba 3.0.22 and mihaisofti Linux - Server 1 09-18-2006 05:12 PM
how to have local ldap backends for pdc and bdc and syncronice procfs Linux - Security 0 07-17-2006 06:33 AM
Local Profiles from SAMBA 3.0 wyndman Linux - Newbie 1 03-01-2006 03:07 PM
samba PDC <-> BDC saavik Linux - Networking 3 08-18-2004 10:30 AM
Linux PDC using Samba with NT 4 servedr BDC ??? TechnoBod Linux - Networking 3 02-11-2003 09:08 PM

All times are GMT -5. The time now is 05:06 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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration