username map and user tokens [was Re: Samba 3.0.23pre1 Available for Download]

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat Apr 29 17:35:09 GMT 2006


On Sat, Apr 29, 2006 at 08:11:31AM -0500, Gerald (Jerry) Carter wrote:
> ok.  My idea was to try to remove the sids life from the
> server_supplied_info struct and just use the ptok pointer.
> Then simply check the returned username from make_user_info_map()
> to see if it had changed.
> 
> if ( user has been mapped)
> 	server->ptok = create_local_token_by_name( username )
> else
> 	server->ptok = create_token_from_info3( info3 )
> 
> or something like this.
> 
> I'm not sure the sids list in the server struct can be removed
> but it seems like a lot of duplication.

Sounds close to what I had in mind :-)

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060429/c5364ebf/attachment.bin


More information about the samba-technical mailing list