summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbw.h
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-11-01 04:31:19 +0000
committerTim Potter <tpot@samba.org>2000-11-01 04:31:19 +0000
commitae7911e4d85755085e5413b2de53155e19ac4a1a (patch)
tree272e0d621f84ed21b1bde94f6f0ca28eb69dddeb /source3/smbwrapper/smbw.h
parent71daef8167136de05922e3215850da7bb7d94548 (diff)
downloadsamba-ae7911e4d85755085e5413b2de53155e19ac4a1a.tar.gz
samba-ae7911e4d85755085e5413b2de53155e19ac4a1a.tar.bz2
samba-ae7911e4d85755085e5413b2de53155e19ac4a1a.zip
Added a authentication hook to smbwrapper which allows a (username,
workgroup, password) tuple to be provided by another function. (This used to be commit 644c78d64a6d7b7e44414c579de660321a0a6b34)
Diffstat (limited to 'source3/smbwrapper/smbw.h')
-rw-r--r--source3/smbwrapper/smbw.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/smbwrapper/smbw.h b/source3/smbwrapper/smbw.h
index 7241f8b3c5..d059b20c78 100644
--- a/source3/smbwrapper/smbw.h
+++ b/source3/smbwrapper/smbw.h
@@ -19,6 +19,9 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifndef _SMBW_H
+#define _SMBW_H
+
#define SMBW_PREFIX "/smb/"
#define SMBW_DUMMY "/dev/null"
@@ -33,6 +36,8 @@ struct smbw_server {
struct cli_state cli;
char *server_name;
char *share_name;
+ char *workgroup;
+ char *username;
dev_t dev;
BOOL no_pathinfo2;
};
@@ -60,3 +65,8 @@ struct smbw_dir {
char *path;
};
+typedef void (*smbw_get_auth_data_fn)(char *server, char *share,
+ char **workgroup, char **username,
+ char **password);
+
+#endif /* _SMBW_H */