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

Attribute types are in lowercase within searchResEntry #62

Open
nikigen68 opened this issue Oct 17, 2023 · 2 comments
Open

Attribute types are in lowercase within searchResEntry #62

nikigen68 opened this issue Oct 17, 2023 · 2 comments

Comments

@nikigen68
Copy link

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.

@kwart
Copy link
Member

kwart commented Oct 19, 2023

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
...

@nikigen68
Copy link
Author

nikigen68 commented Oct 23, 2023

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

  • users.ldif has been updated with:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants