Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All, I setup an PDC and I have an trouble? When I create samba accoutn by smbldap-useradd command Code: pdbedit -Lv testuser smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MICROHDESK.NET))] smbldap_open_connection: connection opened ldap_connect_system: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    nyu
    nyu is offline
    Just Joined!
    Join Date
    Aug 2009
    Posts
    7

    Samba opebldap PDC pdbedit issues


    Hi All,

    I setup an PDC and I have an trouble?

    When I create samba accoutn by smbldap-useradd command

    Code:
    pdbedit -Lv testuser
    smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MICROHDESK.NET))]
    smbldap_open_connection: connection opened
    ldap_connect_system: successful connection to the LDAP server
    smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MICROHDESK.NET))]
    smbldap_open_connection: connection opened
    ldap_connect_system: successful connection to the LDAP server
    init_sam_from_ldap: Entry found for user: testuser
    Unix username:        testuser
    NT username:          testuser
    Account Flags:        [U          ]
    User SID:             S-1-5-21-1553439965-3267355607-3369210888-3000
    request done: ld 0x994b668 msgid 1
    request done: ld 0x994b668 msgid 2
    init_group_from_ldap: Entry found for group: 513
    init_group_from_ldap: Entry found for group: 513
    Primary Group SID:    S-1-5-21-1553439965-3267355607-3369210888-513
    Full Name:            testuser
    Home Directory:       \\%L\testuser
    HomeDir Drive:        H:
    Logon Script:         logon.bat
    Profile Path:         \\%L\profiles\testuser
    Domain:               MICROHDESK.NET
    Account desc:         
    Workstations:         
    Munged dial:          
    Logon time:           0
    Logoff time:          never
    Kickoff time:         never
    Password last set:    Tue, 27 Jul 2010 23:08:38 ICT
    Password can change:  Tue, 27 Jul 2010 23:08:38 ICT
    Password must change: never
    Last bad password   : 0
    Bad password count  : 0
    Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    But when I create samba account by PHPLDAPADMIN ( I choosed Primary Group SID: Domain Users)
    But when I excute:
    Code:
    pdbedit -Lv huynguyen
    smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MICROHDESK.NET))]
    smbldap_open_connection: connection opened
    ldap_connect_system: successful connection to the LDAP server
    smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MICROHDESK.NET))]
    smbldap_open_connection: connection opened
    ldap_connect_system: successful connection to the LDAP server
    init_sam_from_ldap: Entry found for user: huynguyen
    Unix username:        huynguyen
    NT username:          huynguyen
    Account Flags:        [U          ]
    User SID:             S-1-5-21-1553439965-3267355607-3369210888-3008
    request done: ld 0x8ccf4b8 msgid 1
    request done: ld 0x8ccf4b8 msgid 2
    request done: ld 0x8ccf4b8 msgid 3
    pdb_get_group_sid: Failed to find Unix account for huynguyen
    Primary Group SID:    (NULL SID)
    Full Name:            huy nguyen
    Home Directory:       \\pdc-svr\huynguyen
    HomeDir Drive:        H:
    Logon Script:         logon.bat
    Profile Path:         \\pdc-svr\Profiles\huynguyen
    Domain:               MICROHDESK.NET
    Account desc:         
    Workstations:         
    Munged dial:          
    Logon time:           0
    Logoff time:          never
    Kickoff time:         never
    Password last set:    0
    Password can change:  0
    Password must change: 0
    Last bad password   : 0
    Bad password count  : 0
    Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
    This is ldapsearch

    ldapsearch -b "dc=microhdesk,dc=net" -x "(uid=huyngoc)"
    Code:
    # extended LDIF
    #
    # LDAPv3
    # base <dc=microhdesk,dc=net> with scope subtree
    # filter: (uid=huyngoc)
    # requesting: ALL
    #
    
    # huy ngoc, IT, MICROHDESK.NET, microhdesk.net
    dn: cn=huy ngoc,cn=IT,sambaDomainName=MICROHDESK.NET,dc=microhdesk,dc=net
    givenName: huy
    sn: ngoc
    cn: huy ngoc
    gidNumber: 513
    uid: huyngoc
    uidNumber: 1005
    sambaSID: S-1-5-21-1553439965-3267355607-3369210888-3010
    sambaPrimaryGroupSID: S-1-5-21-1553439965-3267355607-3369210888-513-
    homeDirectory: /home/users/Domain Users/ngoc
    sambaAcctFlags: [U]
    objectClass: inetOrgPerson
    objectClass: sambaSamAccount
    objectClass: posixAccount
    objectClass: top
    
    # search result
    search: 2
    result: 0 Success
    
    # numResponses: 2
    # numEntries: 1
    ldapsearch -b "dc=microhdesk,dc=net" -x "(cn=testuser)"
    Code:
    # extended LDIF
    #
    # LDAPv3
    # base <dc=microhdesk,dc=net> with scope subtree
    # filter: (cn=testuser)
    # requesting: ALL
    #
    
    # testuser, People, microhdesk.net
    dn: uid=testuser,ou=People,dc=microhdesk,dc=net
    objectClass: top
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    objectClass: posixAccount
    objectClass: shadowAccount
    objectClass: sambaSamAccount
    cn: testuser
    sn: testuser
    givenName: testuser
    uid: testuser
    uidNumber: 1000
    gidNumber: 513
    homeDirectory: /home/testuser
    loginShell: /bin/bash
    gecos: System User
    sambaLogonTime: 0
    sambaLogoffTime: 2147483647
    sambaKickoffTime: 2147483647
    sambaPwdCanChange: 0
    displayName: testuser
    sambaSID: S-1-5-21-1553439965-3267355607-3369210888-3000
    sambaPrimaryGroupSID: S-1-5-21-1553439965-3267355607-3369210888-513
    sambaLogonScript: logon.bat
    sambaProfilePath: \\%L\profiles\testuser
    sambaHomePath: \\%L\testuser
    sambaHomeDrive: H:
    sambaAcctFlags: [U]
    sambaPwdMustChange: 1283838712
    shadowMax: 45
    sambaPasswordHistory: 00000000000000000000000000000000000000000000000000000000
     00000000
    sambaPwdLastSet: 1280246918
    
    # search result
    search: 2
    result: 0 Success
    
    # numResponses: 2
    # numEntries: 1


    What different when I create user by smbldap-useradd it create an CN= and phpldapadmin was create an UID=

    Regards,
    NyU

  2. #2
    nyu
    nyu is offline
    Just Joined!
    Join Date
    Aug 2009
    Posts
    7
    Any one help me??

    Thanks any advance!
    Regards,

  3. #3
    nyu
    nyu is offline
    Just Joined!
    Join Date
    Aug 2009
    Posts
    7
    [SLOVED]I will post how to later!!

  4. #4
    Just Joined!
    Join Date
    Jun 2008
    Posts
    8
    Please post your solution, I'm stuck too.

Posting Permissions

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