From 9a0cb06b240f3d772b53a6acc4804ccd9cbc4072 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Wed, 25 Nov 1998 23:11:25 +0000 Subject: fixing group database issues (This used to be commit 591c63e3e1e3201ddcd7582585b652fb848d80ca) --- source3/passdb/passdb.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'source3/passdb/passdb.c') diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index ca5dd8b585..70c7f1fc9c 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -128,7 +128,7 @@ struct smb_passwd *iterate_getsmbpwuid(uid_t smb_userid) does not have search facilities. *************************************************************************/ -struct smb_passwd *iterate_getsmbpwnam(char *name) +struct smb_passwd *iterate_getsmbpwnam(const char *name) { struct smb_passwd *pwd = NULL; void *fp = NULL; @@ -146,6 +146,7 @@ struct smb_passwd *iterate_getsmbpwnam(char *name) while ((pwd = getsmbpwent(fp)) != NULL && !strequal(pwd->smb_name, name)) { + DEBUG(10, ("iterate: %s 0x%x\n", pwd->smb_name, pwd->smb_userid)); } if (pwd != NULL) @@ -224,7 +225,7 @@ BOOL mod_smbpwd_entry(struct smb_passwd* pwd, BOOL override) Routine to search smb passwd by name. *************************************************************************/ -struct smb_passwd *getsmbpwnam(char *name) +struct smb_passwd *getsmbpwnam(const char *name) { return pwdb_ops->getsmbpwnam(name); } @@ -256,7 +257,7 @@ struct smb_passwd *getsmbpwuid(uid_t smb_userid) does not have search facilities. *************************************************************************/ -struct sam_passwd *iterate_getsam21pwnam(char *name) +struct sam_passwd *iterate_getsam21pwnam(const char *name) { struct sam_passwd *pwd = NULL; void *fp = NULL; @@ -385,7 +386,7 @@ struct sam_passwd *getsam21pwent(void *vp) Routine to search sam passwd by name. *************************************************************************/ -struct sam_passwd *getsam21pwnam(char *name) +struct sam_passwd *getsam21pwnam(const char *name) { return pwdb_ops->getsam21pwnam(name); } @@ -694,7 +695,7 @@ void pwdb_set_last_set_time(char *p, int max_len, time_t t) /************************************************************* Routine to set 32 hex password characters from a 16 byte array. **************************************************************/ -void pwdb_sethexpwd(char *p, char *pwd, uint16 acct_ctrl) +void pwdb_sethexpwd(char *p, const char *pwd, uint16 acct_ctrl) { if (pwd != NULL) { @@ -721,7 +722,7 @@ void pwdb_sethexpwd(char *p, char *pwd, uint16 acct_ctrl) Routine to get the 32 hex characters and turn them into a 16 byte array. **************************************************************/ -BOOL pwdb_gethexpwd(char *p, char *pwd) +BOOL pwdb_gethexpwd(const char *p, char *pwd) { return strhex_to_str(pwd, 32, p) == 16; } -- cgit