Open nikigen68 opened 1 year ago
The ldapsearch
works for me as expected.
ldapsearch -LLL -H ldap://127.0.0.1:10389 -w secret -D uid=admin,ou=system
...
dn: ou=groups,ou=system
ou: groups
objectClass: top
objectClass: organizationalUnit
...
I get the same printout for uid=admin as you do, but for custom user I get only the lower cases for attribute types:
$ ldapsearch -LLL -H ldap://127.0.0.1:389 -w secret -D uid=admin,ou=system | grep -A 17 "dn: uid=EricssonAdUser" dn: uid=EricssonAdUser,ou=users,dc=sw,dc=ei,dc=k2,dc=ericsson,dc=se samaccountname: EricssonAdUser memberof: admin objectcategory: User ericssonuserauthorizationscope: SystemAdmin ericssonuserauthorizationscope: SystemSecurityAdministrator ericssonuserauthorizationscope: NetworkOperator sn: EricssonAdUser cn: EricssonAdUser objectclass: simulatedMicrosoftSecurityPrincipal objectclass: top objectclass: ericssonUserAuthentication objectclass: person objectclass: inetOrgPerson objectclass: organizationalPerson objectclass: ericssonUserAuthorization userpassword:: c2VjcmV0 uid: EricssonAdUser
dn: cn=ericsson, ou=schema objectclass: metaSchema objectclass: top cn: ericsson
dn: ou=attributetypes,cn=ericsson,ou=schema objectclass: organizationalUnit objectclass: top ou: attributetypes
dn: ou=objectClasses,cn=ericsson,ou=schema objectclass: organizationalUnit objectclass: top ou: objectClasses
dn: m-oid=1.3.6.1.4.1.193.207.372,ou=attributetypes,cn=ericsson,ou=schema objectclass: metaAttributeType objectclass: metaTop objectclass: top m-oid: 1.3.6.1.4.1.193.207.372 m-name: ericssonUserAuthenticationScope m-equality: caseIgnoreMatch m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
dn: m-oid=1.3.6.1.4.1.193.207.373,ou=attributetypes,cn=ericsson,ou=schema objectclass: metaAttributeType objectclass: metaTop objectclass: top m-oid: 1.3.6.1.4.1.193.207.373 m-name: ericssonUserAuthorizationScope m-equality: caseIgnoreMatch m-substr: caseIgnoreSubstringsMatch m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
dn: m-oid=1.3.6.1.4.1.193.207.371,ou=attributetypes,cn=ericsson,ou=schema objectclass: metaAttributeType objectclass: metaTop objectclass: top m-oid: 1.3.6.1.4.1.193.207.371 m-name: role m-equality: caseIgnoreMatch m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
dn: m-oid=1.3.6.1.4.1.193.207.374,ou=objectClasses,cn=ericsson,ou=schema objectclass: metaObjectClass objectclass: metaTop objectclass: top m-oid: 1.3.6.1.4.1.193.207.374 m-name: ericssonUserAuthentication m-supObjectClass: top m-typeObjectClass: AUXILIARY m-may: ericssonUserAuthenticationScope
dn: m-oid=1.3.6.1.4.1.193.207.376,ou=objectClasses,cn=ericsson,ou=schema objectclass: metaObjectClass objectclass: metaTop objectclass: top m-oid: 1.3.6.1.4.1.193.207.376 m-name: ericssonUserAuthorization m-supObjectClass: top m-typeObjectClass: AUXILIARY m-may: ericssonUserAuthorizationScope
dn: dc=sw,dc=ei,dc=k2,dc=ericsson,dc=se dc: sw objectClass: top objectClass: domain
dn: ou=users,dc=sw,dc=ei,dc=k2,dc=ericsson,dc=se objectclass: organizationalUnit objectclass: top ou: Users
dn: ou=roles,dc=sw,dc=ei,dc=k2,dc=ericsson,dc=se objectclass: top objectclass: organizationalUnit ou: roles
dn: cn=admin,ou=roles,dc=sw,dc=ei,dc=k2,dc=ericsson,dc=se objectclass: top objectclass: groupOfNames cn: admin member: uid=EricssonAdUser,ou=users,dc=sw,dc=ei,dc=k2,dc=ericsson,dc=se
dn: uid=EricssonAdUser,ou=users,dc=sw,dc=ei,dc=k2,dc=ericsson,dc=se objectclass: top objectclass: person objectclass: inetOrgPerson objectclass: ericssonUserAuthentication objectclass: ericssonUserAuthorization objectclass: simulatedMicrosoftSecurityPrincipal objectCategory: User ericssonUserAuthorizationScope: SystemAdmin ericssonUserAuthorizationScope: SystemSecurityAdministrator ericssonUserAuthorizationScope: NetworkOperator cn: EricssonAdUser sn: EricssonAdUser uid: EricssonAdUser sAMAccountName: EricssonAdUser userPassword: secret memberOf: admin
Attribute types in search response have all letters in lowercase. Expecting "memberOf" but got "memberof". Also expecting user defined type "userAthorizationScope" but got "userauthorizationscope". Attribute values have the expected letter cases.