Hi Harti! I think, that there is a chance. We can make an nsswitch source, named "compat". This source will keep the "traditional" functionality, i.e. would be implemented through getgrent(), setgrent(). The "compat" source can also be used as a stub in all places, where we don't want to write the new, specialized code, but want our usual functionality (getgrent+setgrent). We then can modify the winbind nsswitch module to support the getgrouplist() function, so that it can work in the optimal way. So I don't see any reason, that won't allow us to do it. I can implement all the necessary stuff, If you don't mind. With best regards, Michael Harti Brandt wrote: >Hi Michael, > >just a short question: is there any chance you could marshall the >getgrouplist() call through nsswitch? Linux does this and FreeBSD doesn't. >The problem with not doing this comes when you connect a FreeBSD machine >via Samba to a large Active Directory. The current implementation of >getgrouplist() scans through all groups. This may take several minutes >depending on the size of the AD. On Linux this is much faster, because >Samba's implementation of getgrouplist() can directly ask the AD for a >list of all members of a given group. > >I would try to do this myself, but given my lack of knowledge in the >nsswitch stuff and the lack of free time this would take some time. > >Thanks, >harti > >On Tue, 6 Dec 2005, Michael Bushkov wrote: > >MB>Hello! >MB>I've made the "nsswitch + caching daemon" project during the Google's Summer >MB>of Code. I'm still working on it - there is always a room for improvements :) >MB> >MB>Since previous release, I've made a lot of changes to the initial version, >MB>fixed some bugs, and this version seems to be worth using it :) >MB> >MB>Here is the the new release of the patch: >MB>http://www.rsu.ru/~bushman/nsswitch_cached/nss_cached_rev2.patch >MB> >MB>The description of the project itself and of its several new features can be >MB>found here: >MB>http://rsu.ru/~bushman/nsswitch_cached/ >MB> >MB>Your feedback would be great! >MB> >MB>Michael Bushkov >MB>Rostov State University >MB>_______________________________________________ >MB>freebsd-current_at_freebsd.org mailing list >MB>http://lists.freebsd.org/mailman/listinfo/freebsd-current >MB>To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org" >MB> >MB> >MB> > >Received on Tue Dec 06 2005 - 13:33:48 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:48 UTC