mirror of
https://github.com/samba-team/samba.git
synced 2025-12-13 16:23:50 +03:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user