summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-12 07:06:48 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-12 07:06:48 +0000
commit49bf19710345a59a2d17cd449be1a132885ed821 (patch)
tree6079de296dd5c9986017879307e195bb44e923ac /source/include
parentbadc0f229a2940560b56aafde9824f1b4bd0f7c7 (diff)
downloadsamba-49bf19710345a59a2d17cd449be1a132885ed821.tar.gz
samba-49bf19710345a59a2d17cd449be1a132885ed821.tar.xz
samba-49bf19710345a59a2d17cd449be1a132885ed821.zip
extracted the password change code from smbpasswd and used it in swat
instead of opening pipes and other horrible stuff.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/proto.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index 888e2af33f3..25804919763 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -507,6 +507,11 @@ void sort_query_replies(char *data, int n, struct in_addr ip);
char *get_nt_error_msg(uint32 nt_code);
+/*The following definitions come from libsmb/passchange.c */
+
+BOOL remote_password_change(const char *remote_machine, const char *user_name,
+ const char *old_passwd, const char *new_passwd);
+
/*The following definitions come from libsmb/pwd_cache.c */
void pwd_init(struct pwd_info *pwd);
@@ -1212,6 +1217,12 @@ BOOL pdb_rid_is_user(uint32 rid);
struct passdb_ops *file_initialize_password_db(void);
+/*The following definitions come from passdb/smbpasschange.c */
+
+BOOL local_password_change(char *user_name, BOOL trust_account, BOOL add_user,
+ BOOL enable_user, BOOL disable_user, BOOL set_no_password,
+ char *new_passwd);
+
/*The following definitions come from passdb/smbpassfile.c */
BOOL pw_file_lock(int fd, int type, int secs, int *plock_depth);