Re: Dynamic Group Query Not Returning Members

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On 14 Mar 2019, at 05:08, Fong, Trevor <trevor.fong@xxxxxx> wrote:
> 
> Hi There,
>  
> I'm trying to set up dynamic groups with 389 DS (1.3.7.5 B2018.184.1411) but my queries against it don't seem to be returning any members.
> I have a user set up like this:
>  
> objectClass: eduPerson
> objectClass: inetLocalMailRecipient
> objectClass: inetOrgPerson
> objectClass: inetUser
> objectClass: organizationalPerson
> objectClass: person
> objectClass: posixAccount
> objectClass: top
> cn: Test Abc
> gidNumber: <redacted>
> homeDirectory: /home/testabc
> sn: Abc
> uid: testabc
> uidNumber: <redacted>
> displayName: Test Abc
> givenName: Test
> loginShell: /bin/bash
> userPassword:: <redacted>
>  
>  
> I have my dynamic group set up like this:
>  
> objectClass: groupOfUniqueNames
> objectClass: groupOfURLs
> objectClass: top
> cn: DynGroup-Test-UniqueMembers
> description: uniqueMembers test
> memberURL: ldap:///ou=PEOPLE,dc=test?objectClass?sub?(sn=Abc)
>  
>  
> The memberURL:
> ldap:///ou=PEOPLE,dc=test?objectClass?sub?(sn=Abc)
> returns uid=testabc
>  
> However my query of the dynamic group doesn't return anything:
> ldapsearch -x -D "cn=Directory Manager" -W -b " ou=Groups,dc=test" -s sub -a always -z 1000 "(uniqueMember=uid=testabc,ou=PEOPLE,dc=test)" “objectClass”

Having a brief read I’m not sure that 389-ds resolves this for you, I think the client is expected to read the group, then run the memberUrl queries? I could be mistaken though…


An alternate solution to your problem is to use automember plugin with multiple instances and allow that to populate your groups instead. That will allow memberOf to work. 

—
Sincerely,

William Brown
Software Engineer, 389 Directory Server
SUSE Labs
_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux