Herb Lewis [Fri, 23 Aug 2002 10:58:44 +0000 (10:58 +0000)]
sync with 2.2 branch
Jean-François Micouleau [Fri, 23 Aug 2002 05:12:06 +0000 (05:12 +0000)]
some cleanup while working on the NETLOGON pipe.
smb_io_chal() did a prs_align() but a challenge is an array of bytes.
and all code calling smb_io_chal() played with the alignment to not align !
I'm confident in my change, but I would *really* like if jeremy could look
at that.
J.F.
Tim Potter [Thu, 22 Aug 2002 23:44:36 +0000 (23:44 +0000)]
Fix for change in cli_netlogon_sam_sync()
Tim Potter [Thu, 22 Aug 2002 23:39:26 +0000 (23:39 +0000)]
Added some new delta types discovered by Ronnie from ethereal"
- SAM_DELTA_RENAME{USER,GROUP,ALIAS}
- SAM_DELTA_DELETE{USER,GROUP}
Renamed some of the unknown delta types and their unmarshalling functions:
- SAM_DELTA_TRUST_DOMS
- SAM_DELTA_SECRET_INFO
Herb Lewis [Thu, 22 Aug 2002 23:34:27 +0000 (23:34 +0000)]
move where got_sig_term and reload_after_sighup are defined.
populate cli structure with called name and calling name even for port
445 connects.
Andrew Tridgell [Thu, 22 Aug 2002 22:53:33 +0000 (22:53 +0000)]
added smb_xstrndup()
Andrew Tridgell [Thu, 22 Aug 2002 22:53:00 +0000 (22:53 +0000)]
a ASN.1 fix from anthony
Andrew Tridgell [Thu, 22 Aug 2002 22:52:16 +0000 (22:52 +0000)]
don't use spnego in the client unless enabled in smb.conf
Andrew Tridgell [Thu, 22 Aug 2002 22:51:28 +0000 (22:51 +0000)]
made the CAP_UNIX test a bit cleaner
Andrew Tridgell [Thu, 22 Aug 2002 22:50:57 +0000 (22:50 +0000)]
a few minor cleanups in the cldap request
Andrew Tridgell [Thu, 22 Aug 2002 22:48:54 +0000 (22:48 +0000)]
added a 'net rpc samdump' command for dumping the whole sam via
samsync operations (as a BDC)
Andrew Tridgell [Thu, 22 Aug 2002 22:44:06 +0000 (22:44 +0000)]
added a useful unistr2 display function
Simo Sorce [Thu, 22 Aug 2002 21:42:59 +0000 (21:42 +0000)]
typos typos :)
Gerald Carter [Thu, 22 Aug 2002 21:16:11 +0000 (21:16 +0000)]
fix registry editor API for printing backend after I changed
the NT_PRINTER_PARAM to a REGISTRY_VALUE
Herb Lewis [Thu, 22 Aug 2002 21:15:17 +0000 (21:15 +0000)]
reload_after_sighup and got_sig_term are defined in server.c
Tim Potter [Thu, 22 Aug 2002 20:19:49 +0000 (20:19 +0000)]
Spelling fixes.
Jeremy Allison [Thu, 22 Aug 2002 20:02:33 +0000 (20:02 +0000)]
Remember to check for UNIX extensions before saying we support them.
Jeremy.
Tim Potter [Thu, 22 Aug 2002 19:57:53 +0000 (19:57 +0000)]
Put back in BDC support in set_server_role(). Tidied up debugs.
Jeremy Allison [Thu, 22 Aug 2002 19:56:16 +0000 (19:56 +0000)]
We were returning incorrect flags in smb_action....
IFSTEST strikes again :-).
Jeremy.
Tim Potter [Thu, 22 Aug 2002 17:46:25 +0000 (17:46 +0000)]
More compile warnings.
Tim Potter [Thu, 22 Aug 2002 17:43:27 +0000 (17:43 +0000)]
Fix compile warnings.
Andrew Bartlett [Thu, 22 Aug 2002 17:05:35 +0000 (17:05 +0000)]
Ensure we don't change to a user that we can't get an NT_TOKEN for.
Herb Lewis [Thu, 22 Aug 2002 10:33:21 +0000 (10:33 +0000)]
fix for difference in strsep and strtok semantics
Tim Potter [Thu, 22 Aug 2002 09:48:06 +0000 (09:48 +0000)]
Spelling fixes.
Gerald Carter [Thu, 22 Aug 2002 03:12:10 +0000 (03:12 +0000)]
get the access check in addform() correct this time.
Needed to modify OpenPrinter() to store the access granted to
on the print server handle as well.
Gerald Carter [Thu, 22 Aug 2002 02:51:32 +0000 (02:51 +0000)]
fix a few segfaults
Andrew Bartlett [Thu, 22 Aug 2002 01:25:10 +0000 (01:25 +0000)]
Make samsync use popt
Andrew Bartlett [Thu, 22 Aug 2002 00:51:00 +0000 (00:51 +0000)]
A few fixes towards libsmbclient and rpcclient - get pointer types right and
try to keep to functions inside libsmbclient.
Andrew Bartlett
Andrew Bartlett [Thu, 22 Aug 2002 00:16:21 +0000 (00:16 +0000)]
Move comment
Jeremy Allison [Thu, 22 Aug 2002 00:10:02 +0000 (00:10 +0000)]
Fixed IFSTEST errors with OpenParams... more to go.
Jeremy.
Tim Potter [Wed, 21 Aug 2002 23:28:41 +0000 (23:28 +0000)]
Added README written by Jelmer - thanks!
Gerald Carter [Wed, 21 Aug 2002 23:27:38 +0000 (23:27 +0000)]
fix segfault
Jean-François Micouleau [Wed, 21 Aug 2002 23:08:28 +0000 (23:08 +0000)]
NETLOGON NetServerAuthenticate3 include and parser file
J.F.
Andrew Bartlett [Wed, 21 Aug 2002 22:13:45 +0000 (22:13 +0000)]
More hacks for 'guest account' to get it to show up with the right rid...
Andrew Bartlett
Andrew Bartlett [Wed, 21 Aug 2002 21:42:05 +0000 (21:42 +0000)]
Add tridge's backtrace script - it should at least work for systems with
gdb....
Andrew Bartlett
Jeremy Allison [Wed, 21 Aug 2002 21:07:27 +0000 (21:07 +0000)]
Fix longstanding bug in Win2k clients by clearing the shortname
buffer before returning ascii short name.
Jeremy.
Jelmer Vernooij [Wed, 21 Aug 2002 21:00:40 +0000 (21:00 +0000)]
Document -v option
Volker Lendecke [Wed, 21 Aug 2002 20:50:42 +0000 (20:50 +0000)]
Replaced reference to global_myworkgroup by calls to lp_workgroup().
pdbedit failed to initialize global_myworkgroup, wo we could end up
having a SID for SECRETS/SID/ in secrets.tdb.
Volker
Andrew Bartlett [Wed, 21 Aug 2002 20:29:11 +0000 (20:29 +0000)]
This is like jht's (abortive) patch for showing only non-default testparm
options.
Andrew Bartlett
Jelmer Vernooij [Wed, 21 Aug 2002 19:59:23 +0000 (19:59 +0000)]
Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatible
Volker Lendecke [Wed, 21 Aug 2002 19:48:56 +0000 (19:48 +0000)]
pdbedit needs global_myname to be set in order to display the
user SIDs correctly.
Volker
Volker Lendecke [Wed, 21 Aug 2002 19:39:38 +0000 (19:39 +0000)]
global_myname is a pstring, not an fstring
Jelmer Vernooij [Wed, 21 Aug 2002 18:58:04 +0000 (18:58 +0000)]
Add changes suggested by abartlet:
- don't use lp_passwd_file() to retrieve NIS domain name, but use location
instead
- some cleanups
Jelmer Vernooij [Wed, 21 Aug 2002 17:32:14 +0000 (17:32 +0000)]
document nisplus sam
Volker Lendecke [Wed, 21 Aug 2002 17:23:34 +0000 (17:23 +0000)]
Add 'net rpc getsid' to fetch the PDC's SID into the local secrets.tdb
Print domain SID on 'net rpc info'
Volker
Volker Lendecke [Wed, 21 Aug 2002 17:07:10 +0000 (17:07 +0000)]
just comment typos
Volker Lendecke [Wed, 21 Aug 2002 11:48:05 +0000 (11:48 +0000)]
Fix debug level initialization for net.c
Volker
Andrew Bartlett [Wed, 21 Aug 2002 11:34:05 +0000 (11:34 +0000)]
Cope with non-unix accounts - we just won't get the groups for those users.
Andrew Bartlett
Andrew Bartlett [Wed, 21 Aug 2002 11:18:25 +0000 (11:18 +0000)]
Use the 'init' flag to determine if the UID is set, rather than testing the
uid for -1.
Andrew Bartlett
Andrew Bartlett [Wed, 21 Aug 2002 11:15:10 +0000 (11:15 +0000)]
Fix pam_smbpass to always check the return value of pdb_getsampwnam() to
determine if the user exists.
(from post on samba-technical)
Andrew Bartlett
Andrew Bartlett [Wed, 21 Aug 2002 11:12:14 +0000 (11:12 +0000)]
Handle wrap-around on this number by making it unsigned.
(Wrapping to zero does not create problems in this cache)
Andrew Bartlett
Simo Sorce [Wed, 21 Aug 2002 02:34:49 +0000 (02:34 +0000)]
implemented lock and mknod
addedd to vfstest the possibility to read a file to imput a stream of commands
Gerald Carter [Wed, 21 Aug 2002 01:47:29 +0000 (01:47 +0000)]
addform fix from SAMBA_2_2
Simo Sorce [Tue, 20 Aug 2002 21:21:56 +0000 (21:21 +0000)]
fix typos
thanks Josef Zlomek
Jelmer Vernooij [Tue, 20 Aug 2002 20:56:10 +0000 (20:56 +0000)]
pdb_nisplus converted to the new passdb system API's
Jeremy Allison [Tue, 20 Aug 2002 20:54:32 +0000 (20:54 +0000)]
IFSTEST fixes for open fid, nametoolong.
Jeremy.
Shirish Kalele [Tue, 20 Aug 2002 19:58:23 +0000 (19:58 +0000)]
The "max data count" value in SMB transacts indicates how much the other end can
send us. As it stands, we incorrectly set it to the number of bytes we are
sending. Correcting this by setting a static value of 1024 (This could even be
something larger). Improves RPC client performance.
Jelmer Vernooij [Tue, 20 Aug 2002 19:35:13 +0000 (19:35 +0000)]
some fixes
Jelmer Vernooij [Tue, 20 Aug 2002 19:16:28 +0000 (19:16 +0000)]
fix typo
Herb Lewis [Tue, 20 Aug 2002 18:43:59 +0000 (18:43 +0000)]
fix irix compile errors - cannot initialize array in declaration statement
with non-const values - strsep not defined
Jelmer Vernooij [Tue, 20 Aug 2002 17:58:09 +0000 (17:58 +0000)]
Remove unused variables
Jelmer Vernooij [Tue, 20 Aug 2002 17:57:07 +0000 (17:57 +0000)]
Don't report missing "-valid"
Herb Lewis [Tue, 20 Aug 2002 17:38:54 +0000 (17:38 +0000)]
fix generating protos for smbwrapper
Jelmer Vernooij [Tue, 20 Aug 2002 17:13:57 +0000 (17:13 +0000)]
Update generated version of manpages
Jelmer Vernooij [Tue, 20 Aug 2002 16:27:37 +0000 (16:27 +0000)]
New (simpler) documentation system.
Jelmer Vernooij [Tue, 20 Aug 2002 16:11:58 +0000 (16:11 +0000)]
Strip URL stuff, not only ending in .html
Jelmer Vernooij [Tue, 20 Aug 2002 16:06:40 +0000 (16:06 +0000)]
Remove (broken) index
don't use underscores in chaptor names (invalid sgml syntax)
Herb Lewis [Tue, 20 Aug 2002 12:38:43 +0000 (12:38 +0000)]
cannot use casts in the DLIST_xxx macros
Gerald Carter [Tue, 20 Aug 2002 03:01:37 +0000 (03:01 +0000)]
segfault fixes merged from APP_HEAD
Andrew Bartlett [Tue, 20 Aug 2002 01:54:28 +0000 (01:54 +0000)]
Based orginally by work by Kai, this patch moves our NT_TOKEN generation into
our authenticaion code - removing some of the duplication from the current
code.
This also gets us *much* closer to supporting a real SAM backend, becouse the
SAM can give us the right info then.
This also changes our service.c code, so that we do a VUID (rather than uid)
cache on the connection struct, and do full NT ACL/NT_TOKEN checks (or cached
equivilant) on every packet, for the same r or rw mode the whole share was open
for.
Andrew Bartlett
Herb Lewis [Tue, 20 Aug 2002 00:20:23 +0000 (00:20 +0000)]
fix irix compiler error
Jelmer Vernooij [Mon, 19 Aug 2002 23:32:12 +0000 (23:32 +0000)]
Fix syntax errors
Gerald Carter [Mon, 19 Aug 2002 21:17:22 +0000 (21:17 +0000)]
add support for the "value,OID" format described in MSDN.
I've not seen this on a real network, but we support it now :-)
Simo Sorce [Mon, 19 Aug 2002 19:50:54 +0000 (19:50 +0000)]
a new icon for the upcoming wizard
Tim Potter [Mon, 19 Aug 2002 19:12:26 +0000 (19:12 +0000)]
Added comment about our implementation of the trans2
SMB_FILE_INTERNAL_INFORMATION possibly causing the failure of one of the
IFSKIT tests.
Jelmer Vernooij [Mon, 19 Aug 2002 18:06:07 +0000 (18:06 +0000)]
fix typo auth/auth_server.c
remove unused 'max packet' and 'packet size' options
Jelmer Vernooij [Mon, 19 Aug 2002 18:05:06 +0000 (18:05 +0000)]
More smb.conf manpage updates:
add printer command -> addprinter command
delete printer command -> deleteprinter command
display charset
dos charset
hide unwriteable -> hide unwriteable files
hostname lookups
name cache timeout
ntlm auth
paranoid server security
realm
smb ports
unicode
unix charset
wtmp directory
wins partners
block size
vfspath
Andrew Tridgell [Mon, 19 Aug 2002 17:49:37 +0000 (17:49 +0000)]
fixed memory corruption in cli_full_connection()
Andrew Tridgell [Mon, 19 Aug 2002 17:26:00 +0000 (17:26 +0000)]
the SMBD_SELECT_TIMEOUT_WITH_PENDING_LOCKS macro isn't needed any more
Andrew Tridgell [Mon, 19 Aug 2002 16:56:09 +0000 (16:56 +0000)]
print out the GUID in the CLDAP reply
Andrew Tridgell [Mon, 19 Aug 2002 16:55:47 +0000 (16:55 +0000)]
make rpcclient use print_guid()
Andrew Tridgell [Mon, 19 Aug 2002 16:55:29 +0000 (16:55 +0000)]
added a generic print_guid utility, and get the byte order handing
right
Simo Sorce [Mon, 19 Aug 2002 16:54:06 +0000 (16:54 +0000)]
make IRIX happy
Jeremy Allison [Mon, 19 Aug 2002 16:10:27 +0000 (16:10 +0000)]
IFS kit test - don't allow TEMP attribute on directory open.
Jeremy.
Andrew Tridgell [Mon, 19 Aug 2002 15:59:14 +0000 (15:59 +0000)]
we now parse the cldap reply and print its contents. There are a
couple of unknown fields we still need to work out.
Jelmer Vernooij [Mon, 19 Aug 2002 15:33:54 +0000 (15:33 +0000)]
remove 'admin log' parameter (discussed with Jeremy)
remove 'alternate permissions' parameter (deprecated and not used since 2.0) (discussed with tridge)
Andrew Tridgell [Mon, 19 Aug 2002 15:30:26 +0000 (15:30 +0000)]
we now receive and parse the main cldap netlogon reply.
we still need to parse the core of the structure
Jelmer Vernooij [Mon, 19 Aug 2002 15:29:40 +0000 (15:29 +0000)]
Adding documentation for options:
add user to group script
delete group script
ads server
delete user from group script
disable netbios
block size
hide unwriteable
mangling method
Jelmer Vernooij [Mon, 19 Aug 2002 14:55:06 +0000 (14:55 +0000)]
Add script to find undocumented smb.conf options
Andrew Tridgell [Mon, 19 Aug 2002 03:17:03 +0000 (03:17 +0000)]
added a 'net ads lookup' command that does a CLDAP NetLogon query to a
win2000 server. It does seem to work, and win200 sends us a valid
reply, but we don't parse it yet. Maybe tomorrow :)
Gerald Carter [Mon, 19 Aug 2002 02:18:48 +0000 (02:18 +0000)]
added wrapper for delete_printer_data() that write the printer out to disk.
Jelmer Vernooij [Mon, 19 Aug 2002 02:03:02 +0000 (02:03 +0000)]
Update manpage to match to Simo's latest pdbedit changes
Gerald Carter [Mon, 19 Aug 2002 01:56:15 +0000 (01:56 +0000)]
change notify fix left out of merge by APP_HEAD by accident
Jelmer Vernooij [Mon, 19 Aug 2002 01:11:00 +0000 (01:11 +0000)]
Add vfstest manpage + fix typo in configure
Simo Sorce [Mon, 19 Aug 2002 01:02:41 +0000 (01:02 +0000)]
should make all platforms happy with popt
Jelmer Vernooij [Mon, 19 Aug 2002 00:19:44 +0000 (00:19 +0000)]
Add 'conf' command to load different smb.conf files
Simo Sorce [Sun, 18 Aug 2002 20:28:16 +0000 (20:28 +0000)]
O_NOFOLLOW does not exist on solaris 8 ??
Andrew Tridgell [Sun, 18 Aug 2002 20:13:09 +0000 (20:13 +0000)]
round lock timeouts in lockingX upwards to multiples of 1 second, so a
half second timout rounds to 1 not 0
Jelmer Vernooij [Sun, 18 Aug 2002 20:12:43 +0000 (20:12 +0000)]
Add entry about block.so
Andrew Tridgell [Sun, 18 Aug 2002 20:09:02 +0000 (20:09 +0000)]
added exact timing semantics on blocking locks