Сафонов Алексей
2007-May-07 20:42 UTC
Re: [Fedora-directory-users] What groups FDS the user belongs?
Thanks, Patrick>That depends how your groups are set up. Do they contain UIDs or DNs?Groups contain DN, entering users. For example, there is group GIS in it two users enter: uid=ProbnyIv, ou=GIS, dc=mup-example, dc=vrn, dc=ru uid=PukOl, dc=mup-example, dc=vrn, dc=ru These DN are written down in property uniqueMember. In properties of users uid=ProbnyIv and uid=PukOl there is no information on to what groups they belong. Whether it is possible to find out somehow it, requesting properties of the user?>On Mon, 2007-05-07 at 20:52 +0400, Сафонов Алексей wrote: >> Colleagues! >> >> How it is possible to learn to what groups FDS the user belongs, using property only the user? >> I have not found such property. >> >> Only it is possible to look in property of concrete group. >> >> But I need to create inquiry, using only (uid = <user>)...
Patrick Morris
2007-May-07 20:57 UTC
Re: [Fedora-directory-users] What groups FDS the user belongs?
On Tue, 2007-05-08 at 00:42 +0400, Сафонов Алексей wrote:> Thanks, Patrick > > >That depends how your groups are set up. Do they contain UIDs or DNs? > > Groups contain DN, entering users. > For example, there is group GIS in it two users enter: > uid=ProbnyIv, ou=GIS, dc=mup-example, dc=vrn, dc=ru > uid=PukOl, dc=mup-example, dc=vrn, dc=ru > > These DN are written down in property uniqueMember. > > In properties of users uid=ProbnyIv and uid=PukOl there is no information on to what groups they belong. Whether it is possible to find out somehow it, requesting properties of the user?In that case you''re probably looking at two lookups: one to get the dn of the user, and a second to check for groups that have the dn as a uniqueMember.