Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap_auth wrong operate -o option #8

Closed
Joungkyun opened this Issue Mar 16, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@Joungkyun
Copy link
Member

commented Mar 16, 2019

Description

OU can not be changed.

Expected:

[root@host ~]$ LANG= ldap_auth -u user@domain.org
    # extended LDIF
    #
    # LDAPv3
    # base <ou=People,dc=domain,dc=org> with scope subtree
    # filter: (uid=user)
    # requesting: ALL
    #
    # user, People, domain.org
    compatibility dn : user@domain.org
    dn               : uid=user,ou=People,dc=domain,dc=org
    objectClass      : top
    objectClass      : inetOrgPerson
    objectClass      : posixAccount
    objectClass      : shadowAccount
    objectClass      : hostObject
    uid              : user
    cn               : user
    gecos            : HONG KIL DONG
    loginShell       : /bin/bash
    shadowMin        : 0
    shadowMax        : 99999
    shadowWarning    : 7
    shadowLastChange : 16957
    sn               : 홍
    givenName        : 길동
    displayName      : 홍 길동
    uidNumber        : 1001
    gidNumber        : 1001
    userPassword     : {CRYPT}XXXXXXXXXXXXXXXXXXXXXXXXXXXX
    homeDirectory    : /home/ldapusers
    host             :
    # search result
    search           : 2
    result           : 0 Success
    # numResponses: 2
    # numEntries: 1

[root@host ~]$ LANG= ldap_auth -o Admin -u user@domain.org
Error: Can't found 'user@domain.org' entry

Actually:

[root@kill openldap]$ ldap_auth -o Admin -u oops@kldp.org

    # extended LDIF
    #
    # LDAPv3
    # base <ou=People,dc=domain,dc=org> with scope subtree
    # filter: (uid=user)
    # requesting: ALL
    #
    # user, People, domain.org
    compatibility dn : user@domain.org
    dn               : uid=user,ou=People,dc=domain,dc=org
    objectClass      : top
    objectClass      : inetOrgPerson
    objectClass      : posixAccount
    objectClass      : shadowAccount
    objectClass      : hostObject
    uid              : user
    cn               : user
    gecos            : HONG KIL DONG
    loginShell       : /bin/bash
    shadowMin        : 0
    shadowMax        : 99999
    shadowWarning    : 7
    shadowLastChange : 16957
    sn               : 홍
    givenName        : 길동
    displayName      : 홍 길동
    uidNumber        : 1001
    gidNumber        : 1001
    userPassword     : {CRYPT}XXXXXXXXXXXXXXXXXXXXXXXXXXXX
    homeDirectory    : /home/ldapusers
    host             :
    # search result
    search           : 2
    result           : 0 Success
    # numResponses: 2
    # numEntries: 1

@Joungkyun Joungkyun self-assigned this Mar 16, 2019

@Joungkyun Joungkyun added this to the 1.0.2 milestone Mar 16, 2019

@Joungkyun Joungkyun closed this in af493e5 Mar 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.