summaryrefslogtreecommitdiffstats
path: root/source/passdb/smbpass.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-05-19 17:48:40 +0000
committerLuke Leighton <lkcl@samba.org>1998-05-19 17:48:40 +0000
commit0193dd21c3c44e0611add742c6f92b92474de6b8 (patch)
tree7af30d4e968a474ffb8761ed9923e6cefdc8e7aa /source/passdb/smbpass.c
parent6b6539cad8962f2913d892abae811afc72432678 (diff)
downloadsamba-0193dd21c3c44e0611add742c6f92b92474de6b8.tar.gz
samba-0193dd21c3c44e0611add742c6f92b92474de6b8.tar.xz
samba-0193dd21c3c44e0611add742c6f92b92474de6b8.zip
ldap.c :
- added support for some of the new passdb_ops functions. - removed functions that are supported "indirectly" through passdb.c nisppass.c : - modified make_nisname_from_xxx() functions to take a "file" arg. - turned getnisp21pwuid() into getnisp21pwrid(). getnisp21pwuid() functionality is available through "indirect" support in passdb.c - removed functions that are supported "indirectly" through passdb.c - added support for some of the new passdb_ops functions. passdb.c : - created getsam21pwrid() function to go alongside getsam21pwuid. it is not expected that getsam21pwuid ever be used, certainly not from the lib/rpc code. - created getsamdisprid() and getsamdispent(). these are primarily for support of SamrQueryDisplayInfo, however given that they [struct sam_disp_info] return username, rid and fullname, there may be further instances where these functions will be useful. - added support where either the get/add/mod-smb or get/add/mod-sam21 functions are optional. this can be done very easily by checking whether the struct passdb_ops table functions are NULL or not. documented this capability in the notes at the top of the module. - where unix uid was referenced, use uid_t. - where unix gid was referenced, use gid_t. smb.h : - added sam_disp_info functions to passdb_ops. - added getsam21pwrid() function. smbpass.c : - added reference to iterate_getsam21pwrid(). lib/rpc/server/srv_samr.c : - removed group rid code added to get_user_info_21() code: this had been added in the wrong place. the client / server should already know whether it wants to do a lookup by user rid or by group rid. the test of whether the rid is a user or group rid has been left in because this may become useful consistency-check code. - converted back to getsam21pwrid() not getsam21pwuid(pdb_user_rid_to_uid()). this is because the unix uid to user rid mapping can be non-monotonic in some password database systems, and monotonic in others. imposing the restriction by converting immediately from rid to uid at this point is inadviseable, and will place this potential restriction on _all_ password database systems, not just some which, for whatever reason, do not support user rids. it should be up to the individual password database writer to convert from user rid to unix uid, should that module not support rids. lib/rpc/server/srv_util.c : - got lookup_user_name() to call getsamdisprid() not getsmbpwuid(). a bug was introduced (or at least the bug already there was not fixed) whereby the nt user rid was converted to a unix uid, and then not used.
Diffstat (limited to 'source/passdb/smbpass.c')
-rw-r--r--source/passdb/smbpass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/passdb/smbpass.c b/source/passdb/smbpass.c
index 8e0ace99863..ff069059273 100644
--- a/source/passdb/smbpass.c
+++ b/source/passdb/smbpass.c
@@ -933,6 +933,7 @@ static struct passdb_ops file_ops = {
getsmbfile21pwent,
iterate_getsam21pwnam, /* In passdb.c */
iterate_getsam21pwuid, /* In passdb.c */
+ iterate_getsam21pwrid, /* In passdb.c */
add_smbfile21pwd_entry,
mod_smbfile21pwd_entry
};