Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba as a PDC - trouble connecting to domain
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Stonic
n00b
n00b


Joined: 03 Jun 2007
Posts: 47

PostPosted: Sun Jul 29, 2007 9:05 am    Post subject: Samba as a PDC - trouble connecting to domain Reply with quote

Hey, I recently installed samba 3.0.24, and trying to use it as a PDC so I can use roaming profiles and what-not with the domain.

I am using Windows XP SP2 for my client, and I am able to join the network as a workgroup, but for some reason I am having trouble getting it to work while loggin into the domain "HIBE"
I am able to see the shares and everything, I can access all files just fine, so that part is working great.

When I try to set up my windows machine's domain, I get the following message when entering my username + password:

Quote:
multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed.


However, I'm at least a step ahead, before I wasnt even able to resolve my internal domain.

Here is how my samba is set up:

Code:

# /usr/bin/testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[netlogon]"
Processing section "[profiles]"
Processing section "[homes]"
Processing section "[ghost]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC

[global]
        unix charset = ISO8859-1
        workgroup = HIBE
        netbios name = GHOST
        interfaces = lo, eth1
        bind interfaces only = Yes
        passdb backend = tdbsam
        passwd program = /usr/bin/passwd %u
        passwd chat = "*New password:*" %n\r "*New password (again):*" %n\r \ "*Password changed*"
        client NTLMv2 auth = Yes
        client lanman auth = No
        client plaintext auth = No
        log file = /var/log/samba/log.%m
        max log size = 50
        name resolve order = wins lmhosts host bcast
        time server = Yes
        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 -d /dev/null -g 'machines' -c 'Machine Account' -s /bin/false '%u'
        logon script = /etc/samba/login.bat  OR %U.bat
        logon path = \\%L\profiles\%U
        logon drive = H:
        logon home = \\%L\%U\.9xprofile
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins support = Yes
        hosts allow = 172.17.1.0/24, 127.0.0.0/8
        hide unreadable = Yes

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

[profiles]
        path = /var/lib/samba/profiles
        write list = @smbusers, @root
        read only = No
        create mask = 0600
        directory mask = 0700
        case sensitive = No
        preserve case = No
        short preserve case = No
        hide files = /desktop.ini/ntuser.ini/NTUSER.*/
        browseable = No
        csc policy = disable

[homes]
        path = /home/%U
        valid users = %S
        read only = No
        inherit permissions = Yes
        browseable = No

[ghost]
        comment = Public Folder
        path = /usr/ghost
        write list = @users
        read only = No


And when I run smbclient -L localhost I found something here that shouldn't be I think...

Code:

# smbclient -L localhost
Password:
Domain=[HIBE] OS=[Unix] Server=[Samba 3.0.24]

        Sharename       Type      Comment
        ---------       ----      -------
        ghost           Disk      Public Folder
        IPC$            IPC       IPC Service (Samba 3.0.24)
        root            Disk      Home directory of root
Domain=[HIBE] OS=[Unix] Server=[Samba 3.0.24]

        Server               Comment
        ---------            -------
        BEN                  ben
        GHOST                Samba 3.0.24

        Workgroup            Master
        ---------            -------
        HIBE                 GHOST


my computers name (ben) has somehow been listed under the server.

I have set up this server using the following HowTo's:
http://gentoo-wiki.com/HOWTO_Implement_Samba_as_your_PDC
and
http://gentoo-wiki.com/HOWTO_Setup_Samba
Anyway, that's what I'm dealing with, if there is someone that may know of a solution for me, please let me know! I appreaciate all efforts, thanks.
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Sun Jul 29, 2007 9:43 am    Post subject: Reply with quote

This message
Quote:
multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed.

means you are already connected to the server using a different username and password than the one you are trying to use to add the user to the domain. Most likely a guest account.

Two things to do

1. Make sure your windows XP machine is pointing to the samba server for wins, you can check this using
Code:
ipconfig /all
if no wins servers are listed you can either hand them out using a DHCP server or set a static IP on the XP machine and set them manually.

2. Before trying to join the domain run
Code:
net use * /delete
on the XP box, this should clear any existing connections to the samba server.

Quote:

I am able to see the shares and everything, I can access all files just fine, so that part is working great.

This is your problem, you shouldn't be able to see anything or access any files until your computer is part of the domain.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum