#1272 Unable to lookup user, group, netgroup aliases with case_sensitive=false.
Closed: Fixed None Opened 7 years ago by jhrozek.

https://bugzilla.redhat.com/show_bug.cgi?id=805452 (Red Hat Enterprise Linux 6)

Description of problem:
Unable to lookup user, group, netgroup aliases with case_sensitive=false.

Version-Release number of selected component (if applicable):
sssd-1.8.0-17

How reproducible:
Always

Steps to Reproduce:
1. Add the following user, group and netgroup on ldap server:

dn: uid=User_CS1,ou=Users,dc=example,dc=com
uidNumber: 1111111
gidNumber: 1111111
objectClass: posixAccount
objectClass: account
cn: User_CS1
homeDirectory: /home/User_CS1
userPassword:: U2VjcmV0MTIz
uid: User_CS1_Alias
uid: User_CS1

dn: cn=User_CS1_grp1,ou=Groups,dc=example,dc=com
gidNumber: 1111111
objectClass: posixGroup
memberUid: User_CS1
cn: User_CS1_grp1_Alias
cn: User_CS1_grp1

dn: cn=NetGroup_CS1,ou=Netgroups,dc=example,dc=com
objectClass: nisNetgroup
cn: NetGroup_CS1_Alias
cn: NetGroup_CS1
nisNetgroupTriple: (Host1.example.com,User1,example.com)

2. sssd.conf domain section is as follows:
[domain/LDAP]
debug_level=0xFFF0
id_provider = ldap
ldap_uri = ldap://ldapserver.example.com
ldap_search_base = dc=example,dc=com
ldap_tls_cacert = /etc/openldap/certs/server.pem
case_sensitive = false

3. Lookup user, group and netgroup by both primary name and alias.

# id user_cs1
id: user_cs1: No such user      <== nothing is returned

# id user_cs1_alias
uid=1111111(user_cs1) gid=1111111(user_cs1_grp1) groups=1111111(user_cs1_grp1)

# getent group user_cs1_grp1   <== nothing is returned

# getent group user_cs1_grp1_alias
user_cs1_grp1:*:1111111:User_CS1

# getent netgroup netgroup_cs1_alias  <== nothing is returned

# getent netgroup netgroup_cs1
netgroup_cs1          (Host1.example.com, User1, example.com)


Actual results:
Unable to lookup user, group, netgroup aliases with case_sensitive=false

Expected results:
Should be able to lookup alias and primary names of user, group and netgroup.

Additional info:

A patch is already on the list, assigning directly to 1.8.2

blockedby: =>
blocking: =>
coverity: =>
feature_milestone: =>
owner: somebody => jhrozek
patch: 0 => 1
tests: => 0
testsupdated: => 0
upgrade: => 0

Fields changed

status: new => assigned

Fixed in:

resolution: => fixed
status: assigned => closed

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.8.2 (LTM)

2 years ago

Login to comment on this ticket.

Metadata