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

Gerald (Jerry) Carter jerry at samba.org
Sat Apr 29 13:11:31 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Volker Lendecke wrote:

> Jerry, before you do much work here, I'm also looking at it
> right now. I'll send you my patch when I have something.

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.




cheers, jerry
=====================================================================
I live in a Reply-to-All world.               -----------------------
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEU2YDIR7qMdg1EfYRArwwAKDKeo+KA3YrCM5k1r2aWpF56BqLNQCfWrJA
312CIEaUVehscdCz77EnVx4=
=CzmU
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list