[PATCH] Expanding nested groups in winbindd_getgrnam()

Gerald (Jerry) Carter jerry at samba.org
Wed Jun 13 05:22:01 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here's a rough patch for expanding domain group membership
in the winbindd_getgrnam() call.  Couple of comments:

* Adds "winbind expand groups" parameter which defines the
  max depth winbindd will expand group members.  The default
  is the current behavior of one level of expansion.
* The entire getrgnam() interface should be async.  I
  haven't done that.
* Refactors the domain users hack in fill)grent_mem() into
  its own function.

Comments?  I'd like to check this in for 3.0.26 as a
preliminary implementation for people that need it.



cheers, jerry
=====================================================================
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGb375IR7qMdg1EfYRAhXSAJ41tvpEzDA693E6NBO7MVXngQMSTQCfWOZH
NX+aHx+nuw7vcGVFaJaAik4=
=SwSL
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expand_groups.patch
Type: text/x-patch
Size: 19556 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070613/a71795d5/expand_groups.bin


More information about the samba-technical mailing list