I recently setup a new server with CentOS 5.2. Everything works great on the server except when I try to join the domain it simply tells me: "The following error occurred attempting to join the domain "Domain": The user name could not be found. I have researched this error and attempted a number of fixes but have been unable to resolve the issue. I am able to connect to the server with the user name and password that I am using to join the domain (I know that isn't the user name its really talking about) and browse (read/write) the network shares. I have read the last entry in the log pertaining to the domain join request, and it is telling me that useradd could not write to the password file... Anyone have an idea of what is causing this? Below is the error and my smb.conf. I created the smb.conf from a guide at http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-samba-servers.html and added some settings based on previous servers. smbd.log [2008/09/01 22:07:44, 0] passdb/pdb_interface.c:pdb_default_create_user(329) _samr_create_user: Running the command `/usr/sbin/useradd -s /bin/false -d /dev/null -g machines sy01$' gave 1 smb.conf [global] workgroup = NMTWeb netbios name = devserver time server = yes security = user add user script = /usr/sbin/useradd -m %u delete user script = /usr/sbin/userdel -r %u add group script = /usr/sbin/groupadd %g delete group script = /usr/sbin/groupdel %g add user to group script = /usr/sbin/usermod -G %g %u add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null -g machines %u logon drive = U: domain logons = Yes oslevel = 35 preferred master = Yes domain master = Yes local master =yes domain logons = yes printing = cups load printers = yes hide unreadable = yes map to guest = Never hide dot files = yes wins support = yes server string = devserver logon path = \\%L\%U\windowsprofile bind interfaces only = yes [homes] comment = Home Directories valid users = %S read only = No [netlogon] comment = Network Logon Service path = /var/lib/samba/netlogon guest ok = no browseable = No read only = Yes [Public] comment = Public Document Share writeable = yes path = /home/public force directory mode = 777 force group = users force create mode = 777 force user = root valid users = @users create mode = 777 directory mode = 777 [www] Comment = Development Website Directory writeable = yes path = /www force directory mode = 777 force group = users force create mode = 777 force user = root valid users = @users create mode = 777 directory mode = 777
On Mon, Sep 01, 2008 at 10:26:05PM -0600, Greg Koch wrote:> smbd.log > [2008/09/01 22:07:44, 0] > passdb/pdb_interface.c:pdb_default_create_user(329) > _samr_create_user: Running the command `/usr/sbin/useradd -s /bin/false > -d /dev/null -g machines sy01$' gave 1What happens if you call that command manually? Any error message? Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20080902/1dd85daa/attachment.bin
On Mon, 01 Sep 2008, Greg Koch might have said:> I recently setup a new server with CentOS 5.2. Everything works great on > the server except when I try to join the domain it simply tells me: > > "The following error occurred attempting to join the domain "Domain": > > The user name could not be found.I have configured my samba box as a wins server and placed tht IP address in the wins configuration dialog on the windows box I'm joining to my samba PDC. (Start->Settings->Control Panel->Network Connections->right-click on active network connection and choose properties->double-click in TCP/IP (at the bottom)->Advanced->WINS tab). Mike
Samba 3.0.28a (from CentOS 5.2) would not allow me to add my new domain controller to the domain that it was supposed to be controlling. I uninstalled 3.0.28a and installed the 3.0.31 version (which was current at that time). After the upgrade, I was able to join the domain with out difficulty. I submitted a bug-report to CentOS about this issue. ------------------------------------------------------------------------ Tony Hoover, Network Administrator KSU - Salina, College of Technology and Aviation (785) 826-2660 "Don't Blend in..." ------------------------------------------------------------------------ -----Original Message----- From: samba-bounces+hoover=sal.ksu.edu@lists.samba.org [mailto:samba-bounces+hoover=sal.ksu.edu@lists.samba.org] On Behalf Of Greg Koch Sent: Wednesday, September 03, 2008 2:33 PM To: Mike Eggleston Cc: samba@lists.samba.org Subject: Re: [Samba] Unable to Join Domain The server is a WINS server, and I tried adding the server IP to the Advanced/WINS tab and I have the same problem. Any other ideas? On Tue, 2 Sep 2008 06:14:55 -0500, Mike Eggleston <mikeegg1@mac.com> wrote:> On Mon, 01 Sep 2008, Greg Koch might have said: > >> I recently setup a new server with CentOS 5.2. Everything works >> great > on >> the server except when I try to join the domain it simply tells me: >> >> "The following error occurred attempting to join the domain > "Domain": >> >> The user name could not be found. > > I have configured my samba box as a wins server and placed tht IP > address in the wins configuration dialog on the windows box I'm > joining to my samba PDC. (Start->Settings->Control Panel->Network > Connections->right-click on active network connection and choose > properties->double-click in TCP/IP (at the bottom)->Advanced->WINS tab). > > Mike-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
from : http://ftp.sernet.de/pub/services/samba/yum.txt Howto use SerNet Samba packages with Yum: ----------------------------------------- For example for RHEL 5 (tested packages): - cd /etc/yum.repos.d - wget http://ftp.sernet.de/pub/samba/tested/rhel/5/sernet-samba.repo - yum install samba3 To use the latest packages, use wget http://ftp.sernet.de/pub/samba/recent/rhel/5/sernet-samba.repo SerNet Samba Team ----------------------------------------------------------------- -- www.sambaxp.org -- www.enterprisesamba.com -- www.sernet.de -- ----------------------------------------------------------------- CentOS 5.2 would use the same instructions. except use the: http://ftp.sernet.de/pub/samba/recent/centos/5/sernet-samba.repo repo. You may [want to|have to] uninstall your samba before installing samba3 from the sernet repo. ------------------------------------------------------------------------ Tony Hoover, Network Administrator KSU - Salina, College of Technology and Aviation (785) 826-2660 "Don't Blend in..." ------------------------------------------------------------------------ -----Original Message----- From: Greg Koch [mailto:greg@ekingme.com] Sent: Wednesday, September 03, 2008 5:15 PM To: Hoover, Tony Cc: Mike Eggleston; samba@lists.samba.org Subject: RE: [Samba] Unable to Join Domain I had 3.0.28a but when I attempt to install from yum the most current version it supplies is 3.0.28-1.el5_2.1. I realize it is a different package, but it didn't seem to solve my issue. Any help with getting yum to give me a more current version, or other ideas to solve this issue? On Wed, 3 Sep 2008 16:29:16 -0500, "Hoover, Tony" <hoover@sal.ksu.edu> wrote:> Samba 3.0.28a (from CentOS 5.2) would not allow me to add my new > domain controller to the domain that it was supposed to be > controlling. I uninstalled 3.0.28a and installed the 3.0.31 version > (which was currentat> that time). > > After the upgrade, I was able to join the domain with out difficulty. > > I submitted a bug-report to CentOS about this issue. > > > > ---------------------------------------------------------------------- > -- > Tony Hoover, Network Administrator > KSU - Salina, College of Technology and Aviation > (785) 826-2660 > > "Don't Blend in..." > ---------------------------------------------------------------------- > -- > > -----Original Message----- > From: samba-bounces+hoover=sal.ksu.edu@lists.samba.org > [mailto:samba-bounces+hoover=sal.ksu.edu@lists.samba.org] On Behalf Of > Greg Koch > Sent: Wednesday, September 03, 2008 2:33 PM > To: Mike Eggleston > Cc: samba@lists.samba.org > Subject: Re: [Samba] Unable to Join Domain > > The server is a WINS server, and I tried adding the server IP to the > Advanced/WINS tab and I have the same problem. > > Any other ideas? > > On Tue, 2 Sep 2008 06:14:55 -0500, Mike Eggleston <mikeegg1@mac.com> > wrote: >> On Mon, 01 Sep 2008, Greg Koch might have said: >> >>> I recently setup a new server with CentOS 5.2. Everything works >>> great >> on >>> the server except when I try to join the domain it simply tells me: >>> >>> "The following error occurred attempting to join the domain >> "Domain": >>> >>> The user name could not be found. >> >> I have configured my samba box as a wins server and placed tht IP >> address in the wins configuration dialog on the windows box I'm >> joining to my samba PDC. (Start->Settings->Control Panel->Network >> Connections->right-click on active network connection and choose >> properties->double-click in TCP/IP (at the bottom)->Advanced->WINS tab). >> >> Mike > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba
I just wanted to let everyone that helped me with this issue know that I solved it. I used the root user to add the systems to the domain, and it worked perfectly! Apparently the user I was using wasn't allowed to add domain machines... Thanks for all your help though! On Mon, 01 Sep 2008 22:26:05 -0600, Greg Koch <greg@ekingme.com> wrote:> I recently setup a new server with CentOS 5.2. Everything works great on > the server except when I try to join the domain it simply tells me: > > "The following error occurred attempting to join the domain "Domain": > > The user name could not be found. > > I have researched this error and attempted a number of fixes but havebeen> unable to resolve the issue. I am able to connect to the server with the > user name and password that I am using to join the domain (I know that > isn't the user name its really talking about) and browse (read/write) the > network shares. I have read the last entry in the log pertaining to the > domain join request, and it is telling me that useradd could not write to > the password file... Anyone have an idea of what is causing this? Below > is the error and my smb.conf. I created the smb.conf from a guide at >http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-samba-servers.html> and added some settings based on previous servers. > > > smbd.log > [2008/09/01 22:07:44, 0] > passdb/pdb_interface.c:pdb_default_create_user(329) > _samr_create_user: Running the command `/usr/sbin/useradd -s /bin/false > -d /dev/null -g machines sy01$' gave 1 > > > smb.conf > [global] > workgroup = NMTWeb > netbios name = devserver > time server = yes > security = user > add user script = /usr/sbin/useradd -m %u > delete user script = /usr/sbin/userdel -r %u > add group script = /usr/sbin/groupadd %g > delete group script = /usr/sbin/groupdel %g > add user to group script = /usr/sbin/usermod -G %g %u > add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null > -g machines %u > logon drive = U: > domain logons = Yes > oslevel = 35 > preferred master = Yes > domain master = Yes > local master =yes > domain logons = yes > printing = cups > load printers = yes > hide unreadable = yes > map to guest = Never > hide dot files = yes > wins support = yes > server string = devserver > logon path = \\%L\%U\windowsprofile > bind interfaces only = yes > > [homes] > comment = Home Directories > valid users = %S > read only = No > [netlogon] > comment = Network Logon Service > path = /var/lib/samba/netlogon > guest ok = no > browseable = No > read only = Yes > > [Public] > comment = Public Document Share > writeable = yes > path = /home/public > force directory mode = 777 > force group = users > force create mode = 777 > force user = root > valid users = @users > create mode = 777 > directory mode = 777 > > [www] > Comment = Development Website Directory > writeable = yes > path = /www > force directory mode = 777 > force group = users > force create mode = 777 > force user = root > valid users = @users > create mode = 777 > directory mode = 777