convertSambaAccount doesn't handle machine accounts

Simo Sorce simo.sorce at xsec.it
Sun Sep 14 11:35:50 GMT 2003


On Sat, 2003-09-13 at 04:07, Brad Langhorst wrote:
> it leaves 
> primarygroupid in there because
> 	if ( $entry->get_value( "primaryGroupID" ) ) {
> return false when the value is 0
> 
> machine account have a 0 value in that field
> 
> this patch makes the ldif work with slapadd but i don't know what samba
> will do with groups like
>  S-1-5-21-AAAAAAAAA-NNNNNNNN-XXXXXXX-0

samba should accept them finely, except perhaps some code path that
comes to mind that I'm not sure are still there. But you may get
problems from windows, normally RIDs start above 500 (decimal).

Simo.

-- 
Simo Sorce - simo.sorce at xsec.it
Xsec s.r.l. - http://www.xsec.it
via Durando 10 Ed. G - 20158 - Milano
mobile: +39 329 328 7702
tel. +39 02 2399 7130 - fax: +39 02 700 442 399



More information about the samba-technical mailing list