r20098: Properly fix issues with create_token_from_username()
authorJeremy Allison <jra@samba.org>
Sun, 10 Dec 2006 05:23:47 +0000 (05:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:24 +0000 (12:16 -0500)
commit25d6eaae8d0d885add7e64b96df7a489328c6b0f
tree431680de76ddff114e445d656f599f8b0fb3a667
parentaf0f14e3a72756dfaff36e0106ae0f7eaac06633
r20098: Properly fix issues with create_token_from_username()
reported by James. Ensure that this function allocates
everything on the temporary context except the return
memory. Never call this with a null mem context, and
now use conn->mem_ctx instead in smbd/service.c.
Remove separate free functions for conn->ngroups
and conn->nt_user_token as they are now always
talloc'ed off the conn->mem_ctx. Future optimization
will be to remove conn->mem_ctx and make all objects
pointed to in the conn struct talloc'ed off conn itself.
Easy to free then :-).
Jeremy.
(This used to be commit f83b6de44f1058811ff94ac72a8a71bd8e49e4e8)
source3/auth/auth_util.c
source3/include/smb.h
source3/smbd/conn.c
source3/smbd/service.c