summaryrefslogtreecommitdiff
path: root/source3/passdb/passdb.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-05-11 18:03:01 +0000
committerLuke Leighton <lkcl@samba.org>1998-05-11 18:03:01 +0000
commit9141acecdcebd9276107a500435e3d4545020056 (patch)
treef4cd71c6a289d6870946270363a36744fc72d4de /source3/passdb/passdb.c
parent05eb22f77c21f8027e64b0caddefa4d9f030f95f (diff)
downloadsamba-9141acecdcebd9276107a500435e3d4545020056.tar.gz
samba-9141acecdcebd9276107a500435e3d4545020056.tar.bz2
samba-9141acecdcebd9276107a500435e3d4545020056.zip
password back-end database support
ldap.c : - added getldap21pwent() function passdb.c : - getsam21pwent() no longer a stub: calls ldap21 or smb21 smbpass.c : - added getsmb21pwent() function (he he :-) lib/rpc/server/srv_samr.c : - removed "specific" calls to ldap functions; replaced with call to get_sampwd_entries instead (which is unfinished). - rewrote get_user_info_21 function to call getsam21pwrid. (This used to be commit c760ebbf127796427c4602aae61952df938c6def)
Diffstat (limited to 'source3/passdb/passdb.c')
-rw-r--r--source3/passdb/passdb.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 263bbe57cd..5fa354b637 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -87,16 +87,11 @@ struct smb_passwd *getsampwent(void *vp)
*************************************************************************/
struct sam_passwd *getsam21pwent(void *vp)
{
-#if 0
#ifdef USE_LDAP
return getldap21pwent(vp);
#else
return getsmb21pwent(vp);
#endif /* USE_LDAP */
-#else
- DEBUG(0,("getsam21pwent: under development\n"));
- return NULL;
-#endif
}
/*************************************************************************
@@ -144,9 +139,9 @@ BOOL add_sam21pwd_entry(struct sam_passwd *newpwd)
{
#if 0
#ifdef USE_LDAP
- return add_ldappwd_entry(newpwd);
+ return add_ldap21pwd_entry(newpwd);
#else
- return add_smbpwd_entry(newpwd);
+ return add_smb21pwd_entry(newpwd);
#endif /* USE_LDAP */
#else
DEBUG(0,("add_sam21pwd_entry() - under development\n"));
@@ -183,9 +178,9 @@ BOOL mod_sam21pwd_entry(struct sam_passwd* pwd, BOOL override)
{
#if 0
#ifdef USE_LDAP
- return mod_ldappwd_entry(pwd, override);
+ return mod_ldap21pwd_entry(pwd, override);
#else
- return mod_smbpwd_entry(pwd, override);
+ return mod_smb21pwd_entry(pwd, override);
#endif /* USE_LDAP */
#else
DEBUG(0,("mod_sam21pwd_entry() - under development\n"));