Infinite loops again

Luke Kenneth Casson Leighton lkcl at switchboard.net
Mon Jan 18 16:57:01 GMT 1999


> The way I understand the code, Samba does a lookup on name, rid, 
> uid, gid, etc... and expects the function to return a fully
> filled sam_passwd struct.  The way this is implemented for
> private/smbpasswd is obviously an iterative search.
> The problem is that for each iterative search, it  builds 
> the sam_passwd struct which is very expensive and then
> compares to see if it is the one we want.

alternative, as jean-francois pointed out, do N+M resolutions instead of
M*N resolutions, where N is sam_passwd convert and M is private/smbpasswd
lookups.



More information about the samba-technical mailing list