summaryrefslogtreecommitdiffstats
path: root/source/passdb/smbpass.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-05-19 19:17:35 +0000
committerLuke Leighton <lkcl@samba.org>1998-05-19 19:17:35 +0000
commitd906ac5941fa22f93a38d65906b89a80f971b83c (patch)
tree94edfc60906bb57b4f8f667aff2598c6e1640a15 /source/passdb/smbpass.c
parent0193dd21c3c44e0611add742c6f92b92474de6b8 (diff)
downloadsamba-d906ac5941fa22f93a38d65906b89a80f971b83c.tar.gz
samba-d906ac5941fa22f93a38d65906b89a80f971b83c.tar.xz
samba-d906ac5941fa22f93a38d65906b89a80f971b83c.zip
removed "default" system for password database api: all functions must
be supported. there are some stub routines in passdb.c which can be copied into a password database api which do conversion. the module writer can choose which of these to provide full support for instead of using the conversion routines.
Diffstat (limited to 'source/passdb/smbpass.c')
-rw-r--r--source/passdb/smbpass.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/passdb/smbpass.c b/source/passdb/smbpass.c
index ff069059273..d03a5eb75de 100644
--- a/source/passdb/smbpass.c
+++ b/source/passdb/smbpass.c
@@ -920,6 +920,21 @@ BOOL mod_smbfilepwd_entry(struct smb_passwd* pwd, BOOL override)
return True;
}
+static struct sam_disp_info *getsmbfiledispnam(char *name)
+{
+ return pdb_sam_to_dispinfo(pdb_ops->getsmbfile21pwnam(name));
+}
+
+static struct sam_disp_info *getsmbfiledisprid(uint32 rid)
+{
+ return pdb_sam_to_dispinfo(pdb_ops->getsmbfile21pwrid(rid));
+}
+
+static struct sam_disp_info *getsmbfiledispent(void *vp)
+{
+ return pdb_sam_to_dispinfo(pdb_ops->getsmbfile21pwent(vp));
+}
+
static struct passdb_ops file_ops = {
startsmbfilepwent,
endsmbfilepwent,
@@ -936,6 +951,9 @@ static struct passdb_ops file_ops = {
iterate_getsam21pwrid, /* In passdb.c */
add_smbfile21pwd_entry,
mod_smbfile21pwd_entry
+ getsmbfiledispnam,
+ getsmbfiledisprid,
+ getsmbfiledispent
};
struct passdb_ops *file_initialize_password_db(void)