diff options
author | Michael Adam <obnox@samba.org> | 2013-01-28 14:21:44 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-02-05 17:36:33 +0100 |
commit | 600ba80246aaa6cb9499a49f48e92a2657fdc918 (patch) | |
tree | 866fc435ad808263fcad4097d9f03fad5138edc6 /source3/param | |
parent | 4e52fa7b7346c3afdaeb87c2af69ee71cb3cd1fb (diff) | |
download | samba-600ba80246aaa6cb9499a49f48e92a2657fdc918.tar.gz samba-600ba80246aaa6cb9499a49f48e92a2657fdc918.tar.bz2 samba-600ba80246aaa6cb9499a49f48e92a2657fdc918.zip |
s3:param: remove unused functions lp_idmap_uid() and lp_idmap_gid()
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index adadeec0aa..ce40197748 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2884,53 +2884,6 @@ static bool handle_ldap_debug_level(struct loadparm_context *unused, int snum, c return true; } -/*************************************************************************** - Handle idmap/non unix account uid and gid allocation parameters. The format of these - parameters is: - - [global] - - idmap uid = 1000-1999 - idmap gid = 700-899 - - We only do simple parsing checks here. The strings are parsed into useful - structures in the idmap daemon code. - -***************************************************************************/ - -/* Some lp_ routines to return idmap [ug]id information */ - -static uid_t idmap_uid_low, idmap_uid_high; -static gid_t idmap_gid_low, idmap_gid_high; - -bool lp_idmap_uid(uid_t *low, uid_t *high) -{ - if (idmap_uid_low == 0 || idmap_uid_high == 0) - return false; - - if (low) - *low = idmap_uid_low; - - if (high) - *high = idmap_uid_high; - - return true; -} - -bool lp_idmap_gid(gid_t *low, gid_t *high) -{ - if (idmap_gid_low == 0 || idmap_gid_high == 0) - return false; - - if (low) - *low = idmap_gid_low; - - if (high) - *high = idmap_gid_high; - - return true; -} - static bool handle_idmap_backend(struct loadparm_context *unused, int snum, const char *pszParmValue, char **ptr) { lp_do_parameter(snum, "idmap config * : backend", pszParmValue); |