Enumerating password entries

Jean Francois Micouleau Jean-Francois.Micouleau at dalalu.fr
Tue Oct 27 10:43:44 GMT 1998

On Fri, 23 Oct 1998, Luke Kenneth Casson Leighton wrote:

> > A cleaner solution, if you don't mind a one-time startup
> > cost, is to to a startsmbpwent(), getsmbpwent() endsmbpswent()
> > sequence at startup to count the number of entries the
> > first time you need it - and then stat() the file to
> > get the last modified time which you then cache.
> oh.  good call.

Only valid for the smbpasswd file or if you have direct access to the
file. How to you stat() a NIS+ or LDAP server ?


More information about the samba-technical mailing list