diff options
author | Gerald Carter <jerry@samba.org> | 2003-08-13 00:08:28 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-08-13 00:08:28 +0000 |
commit | 5faf3ba9af1bc00db78f8743374acaff93879ff7 (patch) | |
tree | 4af4d7c326b1f19dba702e8af300025ec82afc65 /source3/sam/idmap_util.c | |
parent | 83faad0d0e0006d695af25c04c4526e02c39ad46 (diff) | |
download | samba-5faf3ba9af1bc00db78f8743374acaff93879ff7.tar.gz samba-5faf3ba9af1bc00db78f8743374acaff93879ff7.tar.bz2 samba-5faf3ba9af1bc00db78f8743374acaff93879ff7.zip |
2 fixes
* bug #280 (my fault) - initialize sambaNextUserRid and
sambaNextGroupRid
* Unix users shared vis LDAP or NIS between a samba domain member
of a Samba domain are not seen as domain users on the member servers.
not as local users.
(This used to be commit a030fa373aefde8628def54ca8152f237a0467dc)
Diffstat (limited to 'source3/sam/idmap_util.c')
-rw-r--r-- | source3/sam/idmap_util.c | 47 |
1 files changed, 3 insertions, 44 deletions
diff --git a/source3/sam/idmap_util.c b/source3/sam/idmap_util.c index f794ea5173..c0a3b65c92 100644 --- a/source3/sam/idmap_util.c +++ b/source3/sam/idmap_util.c @@ -22,50 +22,7 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_IDMAP -/********************************************************************** -**********************************************************************/ - -BOOL idmap_get_free_ugid_range(uint32 *low, uint32 *high) -{ - uid_t u_low, u_high; - gid_t g_low, g_high; - - if (!lp_idmap_uid(&u_low, &u_high) || !lp_idmap_gid(&g_low, &g_high)) { - return False; - } - - *low = (u_low < g_low) ? u_low : g_low; - *high = (u_high < g_high) ? u_high : g_high; - - return True; -} - -/****************************************************************** - Get the the non-algorithmic RID range if idmap range are defined -******************************************************************/ - -BOOL idmap_get_free_rid_range(uint32 *low, uint32 *high) -{ - uint32 id_low, id_high; - - if (!lp_enable_rid_algorithm()) { - *low = BASE_RID; - *high = (uint32)-1; - } - - if (!idmap_get_free_ugid_range(&id_low, &id_high)) { - return False; - } - - *low = fallback_pdb_uid_to_user_rid(id_low); - if (fallback_pdb_user_rid_to_uid((uint32)-1) < id_high) { - *high = (uint32)-1; - } else { - *high = fallback_pdb_uid_to_user_rid(id_high); - } - - return True; -} +#if 0 /* NOT USED */ /********************************************************************** Get the free RID base if idmap is configured, otherwise return 0 @@ -137,6 +94,8 @@ BOOL idmap_check_sid_is_in_free_range(const DOM_SID *sid) return True; } +#endif /* NOT USED */ + /***************************************************************** Returns SID pointer. *****************************************************************/ |