Gerald Carter gcarter at valinux.com
Wed May 9 17:32:06 GMT 2001


Can we make this code faster?  If the lookup_name results in getpwnam(),
It is killing me.  I've got LDAP lookups for users and group (via
nss_ldap) and ~150 printers in /etc/printcap?

if (!lookup_name( "Printer Administrators", &owner_sid, &name_type) &&
	!lookup_name( "Administrators", &owner_sid, &name_type) &&
	!lookup_name( "Administrator", &owner_sid, &name_type) &&
	!lookup_name("root", &owner_sid, &name_type))
	sid_copy(&owner_sid, &global_sid_World);

Cheers, jerry
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com/  VA Linux Systems   gcarter at valinux.com
       http://www.samba.org/       SAMBA Team          jerry at samba.org
       http://www.plainjoe.org/                     jerry at plainjoe.org

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )

More information about the samba-technical mailing list