1 --- samba-3.0.7.orig/source/utils/ntlm_auth_proto.h
2 +++ samba-3.0.7/source/utils/ntlm_auth_proto.h
4 +#ifndef _NTLM_AUTH_PROTO_H_
5 +#define _NTLM_AUTH_PROTO_H_
7 +/* This file is automatically generated with "make proto". DO NOT EDIT */
10 +/* The following definitions come from utils/ntlm_auth.c */
12 +const char *get_winbind_domain(void);
13 +const char *get_winbind_netbios_name(void);
14 +DATA_BLOB get_challenge(void) ;
15 +NTSTATUS contact_winbind_auth_crap(const char *username,
17 + const char *workstation,
18 + const DATA_BLOB *challenge,
19 + const DATA_BLOB *lm_response,
20 + const DATA_BLOB *nt_response,
23 + uint8 user_session_key[16],
24 + char **error_string,
27 +/* The following definitions come from utils/ntlm_auth_diagnostics.c */
29 +BOOL diagnose_ntlm_auth(void);
31 +#endif /* _NTLM_AUTH_PROTO_H_ */
32 --- samba-3.0.7.orig/source/smbadduser
33 +++ samba-3.0.7/source/smbadduser
37 +# smbadduser - Written by Mike Zakharoff
41 +exec_prefix=${prefix}
42 +LIBDIR=${prefix}/lib/samba
43 +PRIVATEDIR=/etc/samba
47 +set path = ($path /usr/local/samba/bin)
49 +set smbpasswd = $PRIVATEDIR/smbpasswd
50 +set user_map = $CONFIGDIR/users.map
53 +# Set to site specific passwd command
55 +set passwd = "cat /etc/passwd"
56 +#set passwd = "niscat passwd.org_dir"
57 +#set passwd = "ypcat passwd"
59 +set line = "----------------------------------------------------------"
60 +if ($#argv == 0) then
62 + echo "Written: Mike Zakharoff email: michael.j.zakharoff@boeing.com"
64 + echo " 1) Updates $smbpasswd"
65 + echo " 2) Updates $user_map"
66 + echo " 3) Executes smbpasswd for each new user"
68 + echo "smbadduser unixid:ntid unixid:ntid ..."
70 + echo "Example: smbadduser zak:zakharoffm johns:smithj"
75 +touch $smbpasswd $user_map
78 + echo $one | grep ':' >& /dev/null
79 + if ($status != 0) then
80 + echo "ERROR: Must use unixid:ntid like -> zak:zakharoffm"
83 + set unix = `echo $one | awk -F: '{print $1}'`
84 + set ntid = `echo $one | awk -F: '{print $2}'`
86 + set usr = `eval $passwd | awk -F: '$1==USR {print $1}' USR=$unix`
87 + if ($#usr != 1) then
88 + echo "ERROR: $unix Not in passwd database SKIPPING..."
91 + set tmp = `cat $smbpasswd | awk -F: '$1==USR {print $1}' USR=$unix`
92 + if ($#tmp != 0) then
93 + echo "ERROR: $unix is already in $smbpasswd SKIPPING..."
97 + echo "Adding: $unix to $smbpasswd"
98 + /usr/bin/smbpasswd -a -n $unix
99 + if ($unix != $ntid) then
100 + echo "Adding: {$unix = $ntid} to $user_map"
101 + echo "$unix = $ntid" >> $user_map
103 + set new = ($new $unix)
107 +# Enter password for new users
111 + echo "ENTER password for $one"
114 --- samba-3.0.7.orig/source/script/gen-8bit-gap.sh
115 +++ samba-3.0.7/source/script/gen-8bit-gap.sh
118 +if test $# -ne 2 ; then
119 + echo "Usage: $0 <charmap file> <CHARSET NAME>"
127 +echo " * Conversion table for $CHARSETNAME charset "
129 +echo " * Conversion tables are generated using $CHARMAP table "
130 +echo " * and source/script/gen-8bit-gap.sh script "
132 +echo " * This program is free software; you can redistribute it and/or modify "
133 +echo " * it under the terms of the GNU General Public License as published by "
134 +echo " * the Free Software Foundation; either version 2 of the License, or "
135 +echo " * (at your option) any later version. "
137 +echo " * This program is distributed in the hope that it will be useful,"
138 +echo " * but WITHOUT ANY WARRANTY; without even the implied warranty of "
139 +echo " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "
140 +echo " * GNU General Public License for more details. "
142 +echo " * You should have received a copy of the GNU General Public License "
143 +echo " * along with this program; if not, write to the Free Software "
144 +echo " * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. "
147 +echo '#include "includes.h"'
149 +echo "static const uint16 to_ucs2[256] = {"
150 +cat "$CHARMAP" | gawk -f ./script/gen-8bit-gap.awk
153 +echo "static const struct charset_gap_table from_idx[] = {"
154 +sed -ne 's/^<U\(....\).*/\1/p' \
155 + "$CHARMAP" | sort -u | gawk -f ./script/gap.awk
156 +echo " { 0xffff, 0xffff, 0 }"
159 +echo "static const unsigned char from_ucs2[] = {"
160 +sed -ne 's/^<U\(....\)>[[:space:]]*.x\(..\).*/\1 \2/p' \
161 + "$CHARMAP" | sort -u | gawk -f ./script/gaptab.awk
164 +echo "SMB_GENERATE_CHARSET_MODULE_8_BIT_GAP($CHARSETNAME)"