Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Angry Cannot join PC to Domain on my new samba server

    Hi all,

    I just setup a Samba 3.3.14, with an ldap back-end.

    Every thing is working fine (I migrated the ldap back end/settings from my old samba server), except adding a machine (WinXP) to the domain, when I try to add it like I used to I get:

    The following error occurred attempting to join the domain "":
    A device attached to the system is not functioning.

    in my /var/log/messages I have:

    Dec 30 09:40:24 hap smbd[29379]: [2010/12/30 09:40:24, 0] passdb/pdb_get_set.cdb_get_group_sid(210)
    Dec 30 09:40:24 hap smbd[29379]: pdb_get_group_sid: Failed to find Unix account for OAKRND02$

    repeated about 6 times.

    My smb.conf:

    add machine script = /usr/sbin/smbldap-useradd -w "%u"
    add user script = /usr/sbin/smbldap-useradd -m -a "%u"
    delete user script = /usr/sbin/smbldap-userdel -r "%u"
    add group script = /usr/sbin/smbldap-groupadd -p "%g"
    delete group script = /usr/sbin/smbldap-groupdel "%g"
    add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
    delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
    set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"

    ldap passwd sync = yes
    passwd program = /usr/sbin/smbldap-passwd %u
    passwd chat = "Changing password for*\nNew password*" %n\n "*Retype new password*" %n\n"

    What's most annoying is I tested joining a Windows 7 machine to the domain before I went live, and it was successful, so I've no clue why this isn't working now

    Can anyone PLEASE give me any info on what this might be, thanks!

    EDIT: Also, when trying to type in the command to add it to the domain I get:

    /usr/sbin/smbldap-useradd -w OAKRND02
    failed to add entry: Unexpected EOF at /usr/sbin// line 616.

    And then my slapd dies out... this same behaviour happens when trying to use USRMGR.exe to add a new user (but doing it manually via smbldap DOES work for adding a new user).
    Last edited by Neostim; 12-30-2010 at 04:10 PM.

  2. #2
    Something else I've noticed:

    ldapsearch -b "dc=mydomain,dc=com" -x "(uid=oakrnd01$)"
    version: 2

    # filter: (uid=oakrnd01$)
    # requesting: ALL

    # OAKRND01$, Computers, mydomain, com
    dn: uid=OAKRND01$,ou=Computers,dc=pintys,dc=com
    uid: OAKRND01$
    sambaSID: S-1-5-21-3318375643-2463009161-752822222-41448
    sambaPrimaryGroupSID: S-1-5-21-3318375643-2463009161-752822222-515
    sambaAcctFlags: [W ]
    objectClass: sambaSamAccount
    objectClass: account
    objectClass: top
    objectClass: inetOrgPerson
    objectClass: posixAccount
    sambaPwdCanChange: 1291378566
    sambaPwdMustChange: 1299154566
    sambaNTPassword: EED67D5B90ED8B5C2C168FB90DC4D313
    sambaPwdLastSet: 1291378566

    # search result
    search: 2
    result: 0 Success

    # numResponses: 2
    # numEntries: 1

    So it does add the machine to LDAP.. but samba isn't seeing it (pdbedit -v doesn't find anything).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts