summaryrefslogtreecommitdiffstats
path: root/source3/auth/user_util.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Use "mem_ctx" arg in gencache_getVolker Lendecke2013-09-051-3/+2
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Sep 5 20:09:21 CEST 2013 on sn-devel-104
* lib: Add a "mem_ctx" arg to gencache_get (unused so far)Volker Lendecke2013-09-051-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* BUG 9139: Fix the username map optimization.Andreas Schneider2013-04-091-4/+8
| | | | | | | | | | | | | | | | | | If we successfully map a user. We call set_last_from_to(user_in, unixname); in the while loop reading the map file. After a successfull map we don't stop and continue the loop to check all other mappings in the username mapfile. But when we hit the end of the file and leave the loop we call: set_last_from_to(user_in, user_in); This overwrites the successful mapping, and the next time we call map_username() we skip the username and no mapping is done. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-091-1/+3
|
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-181-2/+2
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-auth: use auth.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* Fix memleak I accidently introduced when reading from tdb.Jeremy Allison2010-11-101-0/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 10 01:56:21 UTC 2010 on sn-devel-104
* Remove fstring from map_username. Create a more sane interface than the ↵Jeremy Allison2010-11-101-37/+64
| | | | | | called-parameter-is-modified. Jeremy.
* s3-auth: Moved smbd user functions to a generic place.Andreas Schneider2010-06-041-0/+406
Reviewed-by: Simo Sorce <idra@samba.org>