summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-25 23:11:25 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-25 23:11:25 +0000
commit9a0cb06b240f3d772b53a6acc4804ccd9cbc4072 (patch)
tree4f1f45b3f1bb8d1165aef9312afc8fb355ae2ec9 /source3/include
parentbfc38ff872446e0ad365c22327c779e72a81bef9 (diff)
downloadsamba-9a0cb06b240f3d772b53a6acc4804ccd9cbc4072.tar.gz
samba-9a0cb06b240f3d772b53a6acc4804ccd9cbc4072.tar.bz2
samba-9a0cb06b240f3d772b53a6acc4804ccd9cbc4072.zip
fixing group database issues
(This used to be commit 591c63e3e1e3201ddcd7582585b652fb848d80ca)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h12
-rw-r--r--source3/include/smb.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 100fdb7c94..a70c51f167 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1277,21 +1277,21 @@ BOOL pass_check(char *user,char *password, int pwlen, struct passwd *pwd,
BOOL initialise_password_db(void);
struct smb_passwd *iterate_getsmbpwrid(uint32 user_rid);
struct smb_passwd *iterate_getsmbpwuid(uid_t smb_userid);
-struct smb_passwd *iterate_getsmbpwnam(char *name);
+struct smb_passwd *iterate_getsmbpwnam(const char *name);
void *startsmbpwent(BOOL update);
void endsmbpwent(void *vp);
struct smb_passwd *getsmbpwent(void *vp);
BOOL add_smbpwd_entry(struct smb_passwd *newpwd);
BOOL mod_smbpwd_entry(struct smb_passwd* pwd, BOOL override);
-struct smb_passwd *getsmbpwnam(char *name);
+struct smb_passwd *getsmbpwnam(const char *name);
struct smb_passwd *getsmbpwrid(uint32 user_rid);
struct smb_passwd *getsmbpwuid(uid_t smb_userid);
-struct sam_passwd *iterate_getsam21pwnam(char *name);
+struct sam_passwd *iterate_getsam21pwnam(const char *name);
struct sam_passwd *iterate_getsam21pwrid(uint32 rid);
struct sam_passwd *iterate_getsam21pwuid(uid_t uid);
struct sam_disp_info *getsamdisprid(uint32 rid);
struct sam_passwd *getsam21pwent(void *vp);
-struct sam_passwd *getsam21pwnam(char *name);
+struct sam_passwd *getsam21pwnam(const char *name);
struct sam_passwd *getsam21pwrid(uint32 rid);
void pwdb_init_smb(struct smb_passwd *user);
void pwdb_init_sam(struct sam_passwd *user);
@@ -1307,8 +1307,8 @@ void pwdb_set_kickoff_time(char *p, int max_len, time_t t);
void pwdb_set_can_change_time(char *p, int max_len, time_t t);
void pwdb_set_must_change_time(char *p, int max_len, time_t t);
void pwdb_set_last_set_time(char *p, int max_len, time_t t);
-void pwdb_sethexpwd(char *p, char *pwd, uint16 acct_ctrl);
-BOOL pwdb_gethexpwd(char *p, char *pwd);
+void pwdb_sethexpwd(char *p, const char *pwd, uint16 acct_ctrl);
+BOOL pwdb_gethexpwd(const char *p, char *pwd);
uid_t pwdb_user_rid_to_uid(uint32 user_rid);
uint32 pwdb_uid_to_user_rid(uid_t uid);
uint32 pwdb_gid_to_group_rid(gid_t gid);
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 8ffd55d10a..50d8c080a3 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -756,7 +756,7 @@ struct passdb_ops {
/*
* smb password database query functions.
*/
- struct smb_passwd *(*getsmbpwnam)(char *);
+ struct smb_passwd *(*getsmbpwnam)(const char *);
struct smb_passwd *(*getsmbpwuid)(uid_t);
struct smb_passwd *(*getsmbpwrid)(uint32);
struct smb_passwd *(*getsmbpwent)(void *);
@@ -775,7 +775,7 @@ struct passdb_ops {
/*
* sam password database query functions.
*/
- struct sam_passwd *(*getsam21pwnam)(char *);
+ struct sam_passwd *(*getsam21pwnam)(const char *);
struct sam_passwd *(*getsam21pwuid)(uid_t);
struct sam_passwd *(*getsam21pwrid)(uint32);
@@ -788,7 +788,7 @@ struct passdb_ops {
/*
* sam query display info functions.
*/
- struct sam_disp_info *(*getsamdispnam)(char *);
+ struct sam_disp_info *(*getsamdispnam)(const char *);
struct sam_disp_info *(*getsamdisprid)(uint32);
struct sam_disp_info *(*getsamdispent)(void *);
@@ -796,9 +796,9 @@ struct passdb_ops {
/*
* password checking functions
*/
- struct smb_passwd *(*smb_password_chal )(char *username, char lm_pass[24], char nt_pass[24], char chal[8]);
- struct smb_passwd *(*smb_password_check )(char *username, char lm_hash[16], char nt_hash[16]);
- struct passwd *(*unix_password_check)(char *username, char *pass, int pass_len);
+ struct smb_passwd *(*smb_password_chal )(const char *username, const char lm_pass[24], const char nt_pass[24], char chal[8]);
+ struct smb_passwd *(*smb_password_check )(const char *username, const char lm_hash[16], const char nt_hash[16]);
+ struct passwd *(*unix_password_check)(const char *username, const char *pass, int pass_len);
#endif
};