tprouty/samba.git
21 years agosync with 2.2 branch
Herb Lewis [Fri, 23 Aug 2002 10:58:44 +0000 (10:58 +0000)]
sync with 2.2 branch

21 years agosome cleanup while working on the NETLOGON pipe.
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.

21 years agoFix for change in cli_netlogon_sam_sync()
Tim Potter [Thu, 22 Aug 2002 23:44:36 +0000 (23:44 +0000)]
Fix for change in cli_netlogon_sam_sync()

21 years agoAdded some new delta types discovered by Ronnie from ethereal"
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

21 years agomove where got_sig_term and reload_after_sighup are defined.
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.

21 years agoadded smb_xstrndup()
Andrew Tridgell [Thu, 22 Aug 2002 22:53:33 +0000 (22:53 +0000)]
added smb_xstrndup()

21 years agoa ASN.1 fix from anthony
Andrew Tridgell [Thu, 22 Aug 2002 22:53:00 +0000 (22:53 +0000)]
a ASN.1 fix from anthony

21 years agodon't use spnego in the client unless enabled in smb.conf
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

21 years agomade the CAP_UNIX test a bit cleaner
Andrew Tridgell [Thu, 22 Aug 2002 22:51:28 +0000 (22:51 +0000)]
made the CAP_UNIX test a bit cleaner

21 years agoa few minor cleanups in the cldap request
Andrew Tridgell [Thu, 22 Aug 2002 22:50:57 +0000 (22:50 +0000)]
a few minor cleanups in the cldap request

21 years agoadded a 'net rpc samdump' command for dumping the whole sam via
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)

21 years agoadded a useful unistr2 display function
Andrew Tridgell [Thu, 22 Aug 2002 22:44:06 +0000 (22:44 +0000)]
added a useful unistr2 display function

21 years agotypos typos :)
Simo Sorce [Thu, 22 Aug 2002 21:42:59 +0000 (21:42 +0000)]
typos typos :)

21 years agofix registry editor API for printing backend after I changed
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

21 years agoreload_after_sighup and got_sig_term are defined in server.c
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

21 years agoSpelling fixes.
Tim Potter [Thu, 22 Aug 2002 20:19:49 +0000 (20:19 +0000)]
Spelling fixes.

21 years agoRemember to check for UNIX extensions before saying we support them.
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.

21 years agoPut back in BDC support in set_server_role(). Tidied up debugs.
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.

21 years agoWe were returning incorrect flags in smb_action....
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.

21 years agoMore compile warnings.
Tim Potter [Thu, 22 Aug 2002 17:46:25 +0000 (17:46 +0000)]
More compile warnings.

21 years agoFix compile warnings.
Tim Potter [Thu, 22 Aug 2002 17:43:27 +0000 (17:43 +0000)]
Fix compile warnings.

21 years agoEnsure we don't change to a user that we can't get an NT_TOKEN for.
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.

21 years agofix for difference in strsep and strtok semantics
Herb Lewis [Thu, 22 Aug 2002 10:33:21 +0000 (10:33 +0000)]
fix for difference in strsep and strtok semantics

21 years agoSpelling fixes.
Tim Potter [Thu, 22 Aug 2002 09:48:06 +0000 (09:48 +0000)]
Spelling fixes.

21 years agoget the access check in addform() correct this time.
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.

21 years agofix a few segfaults
Gerald Carter [Thu, 22 Aug 2002 02:51:32 +0000 (02:51 +0000)]
fix a few segfaults

21 years agoMake samsync use popt
Andrew Bartlett [Thu, 22 Aug 2002 01:25:10 +0000 (01:25 +0000)]
Make samsync use popt

21 years agoA few fixes towards libsmbclient and rpcclient - get pointer types right and
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

21 years agoMove comment
Andrew Bartlett [Thu, 22 Aug 2002 00:16:21 +0000 (00:16 +0000)]
Move comment

21 years agoFixed IFSTEST errors with OpenParams... more to go.
Jeremy Allison [Thu, 22 Aug 2002 00:10:02 +0000 (00:10 +0000)]
Fixed IFSTEST errors with OpenParams... more to go.
Jeremy.

21 years agoAdded README written by Jelmer - thanks!
Tim Potter [Wed, 21 Aug 2002 23:28:41 +0000 (23:28 +0000)]
Added README written by Jelmer - thanks!

21 years agofix segfault
Gerald Carter [Wed, 21 Aug 2002 23:27:38 +0000 (23:27 +0000)]
fix segfault

21 years agoNETLOGON NetServerAuthenticate3 include and parser file
Jean-François Micouleau [Wed, 21 Aug 2002 23:08:28 +0000 (23:08 +0000)]
NETLOGON NetServerAuthenticate3 include and parser file

J.F.

21 years agoMore hacks for 'guest account' to get it to show up with the right rid...
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

21 years agoAdd tridge's backtrace script - it should at least work for systems with
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

21 years agoFix longstanding bug in Win2k clients by clearing the shortname
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.

21 years agoDocument -v option
Jelmer Vernooij [Wed, 21 Aug 2002 21:00:40 +0000 (21:00 +0000)]
Document -v option

21 years agoReplaced reference to global_myworkgroup by calls to lp_workgroup().
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

21 years agoThis is like jht's (abortive) patch for showing only non-default testparm
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

21 years agoPatch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatible
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

21 years agopdbedit needs global_myname to be set in order to display the
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

21 years agoglobal_myname is a pstring, not an fstring
Volker Lendecke [Wed, 21 Aug 2002 19:39:38 +0000 (19:39 +0000)]
global_myname is a pstring, not an fstring

21 years agoAdd changes suggested by abartlet:
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

21 years agodocument nisplus sam
Jelmer Vernooij [Wed, 21 Aug 2002 17:32:14 +0000 (17:32 +0000)]
document nisplus sam

21 years agoAdd 'net rpc getsid' to fetch the PDC's SID into the local secrets.tdb
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

21 years agojust comment typos
Volker Lendecke [Wed, 21 Aug 2002 17:07:10 +0000 (17:07 +0000)]
just comment typos

21 years agoFix debug level initialization for net.c
Volker Lendecke [Wed, 21 Aug 2002 11:48:05 +0000 (11:48 +0000)]
Fix debug level initialization for net.c

Volker

21 years agoCope with non-unix accounts - we just won't get the groups for those users.
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

21 years agoUse the 'init' flag to determine if the UID is set, rather than testing the
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

21 years agoFix pam_smbpass to always check the return value of pdb_getsampwnam() to
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

21 years agoHandle wrap-around on this number by making it unsigned.
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

21 years agoimplemented lock and mknod
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

21 years agoaddform fix from SAMBA_2_2
Gerald Carter [Wed, 21 Aug 2002 01:47:29 +0000 (01:47 +0000)]
addform fix from SAMBA_2_2

21 years agofix typos
Simo Sorce [Tue, 20 Aug 2002 21:21:56 +0000 (21:21 +0000)]
fix typos
thanks Josef Zlomek

21 years agopdb_nisplus converted to the new passdb system API's
Jelmer Vernooij [Tue, 20 Aug 2002 20:56:10 +0000 (20:56 +0000)]
pdb_nisplus converted to the new passdb system API's

21 years agoIFSTEST fixes for open fid, nametoolong.
Jeremy Allison [Tue, 20 Aug 2002 20:54:32 +0000 (20:54 +0000)]
IFSTEST fixes for open fid, nametoolong.
Jeremy.

21 years agoThe "max data count" value in SMB transacts indicates how much the other end can
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.

21 years agosome fixes
Jelmer Vernooij [Tue, 20 Aug 2002 19:35:13 +0000 (19:35 +0000)]
some fixes

21 years agofix typo
Jelmer Vernooij [Tue, 20 Aug 2002 19:16:28 +0000 (19:16 +0000)]
fix typo

21 years agofix irix compile errors - cannot initialize array in declaration statement
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

21 years agoRemove unused variables
Jelmer Vernooij [Tue, 20 Aug 2002 17:58:09 +0000 (17:58 +0000)]
Remove unused variables

21 years agoDon't report missing "-valid"
Jelmer Vernooij [Tue, 20 Aug 2002 17:57:07 +0000 (17:57 +0000)]
Don't report missing "-valid"

21 years agofix generating protos for smbwrapper
Herb Lewis [Tue, 20 Aug 2002 17:38:54 +0000 (17:38 +0000)]
fix generating protos for smbwrapper

21 years agoUpdate generated version of manpages
Jelmer Vernooij [Tue, 20 Aug 2002 17:13:57 +0000 (17:13 +0000)]
Update generated version of manpages

21 years agoNew (simpler) documentation system.
Jelmer Vernooij [Tue, 20 Aug 2002 16:27:37 +0000 (16:27 +0000)]
New (simpler) documentation system.

21 years agoStrip URL stuff, not only ending in .html
Jelmer Vernooij [Tue, 20 Aug 2002 16:11:58 +0000 (16:11 +0000)]
Strip URL stuff, not only ending in .html

21 years agoRemove (broken) index
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)

21 years agocannot use casts in the DLIST_xxx macros
Herb Lewis [Tue, 20 Aug 2002 12:38:43 +0000 (12:38 +0000)]
cannot use casts in the DLIST_xxx macros

21 years agosegfault fixes merged from APP_HEAD
Gerald Carter [Tue, 20 Aug 2002 03:01:37 +0000 (03:01 +0000)]
segfault fixes merged from APP_HEAD

21 years agoBased orginally by work by Kai, this patch moves our NT_TOKEN generation into
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

21 years agofix irix compiler error
Herb Lewis [Tue, 20 Aug 2002 00:20:23 +0000 (00:20 +0000)]
fix irix compiler error

21 years agoFix syntax errors
Jelmer Vernooij [Mon, 19 Aug 2002 23:32:12 +0000 (23:32 +0000)]
Fix syntax errors

21 years agoadd support for the "value,OID" format described in MSDN.
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 :-)

21 years agoa new icon for the upcoming wizard
Simo Sorce [Mon, 19 Aug 2002 19:50:54 +0000 (19:50 +0000)]
a new icon for the upcoming wizard

21 years agoAdded comment about our implementation of the trans2
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.

21 years agofix typo auth/auth_server.c
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

21 years agoMore smb.conf manpage updates:
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

21 years agofixed memory corruption in cli_full_connection()
Andrew Tridgell [Mon, 19 Aug 2002 17:49:37 +0000 (17:49 +0000)]
fixed memory corruption in cli_full_connection()

21 years agothe SMBD_SELECT_TIMEOUT_WITH_PENDING_LOCKS macro isn't needed any more
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

21 years agoprint out the GUID in the CLDAP reply
Andrew Tridgell [Mon, 19 Aug 2002 16:56:09 +0000 (16:56 +0000)]
print out the GUID in the CLDAP reply

21 years agomake rpcclient use print_guid()
Andrew Tridgell [Mon, 19 Aug 2002 16:55:47 +0000 (16:55 +0000)]
make rpcclient use print_guid()

21 years agoadded a generic print_guid utility, and get the byte order handing
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

21 years agomake IRIX happy
Simo Sorce [Mon, 19 Aug 2002 16:54:06 +0000 (16:54 +0000)]
make IRIX happy

21 years agoIFS kit test - don't allow TEMP attribute on directory open.
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.

21 years agowe now parse the cldap reply and print its contents. There are a
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.

21 years agoremove 'admin log' parameter (discussed with Jeremy)
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)

21 years agowe now receive and parse the main cldap netlogon reply.
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

21 years agoAdding documentation for options:
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

21 years agoAdd script to find undocumented smb.conf options
Jelmer Vernooij [Mon, 19 Aug 2002 14:55:06 +0000 (14:55 +0000)]
Add script to find undocumented smb.conf options

21 years agoadded a 'net ads lookup' command that does a CLDAP NetLogon query to a
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 :)

21 years agoadded wrapper for delete_printer_data() that write the printer out to disk.
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.

21 years agoUpdate manpage to match to Simo's latest pdbedit changes
Jelmer Vernooij [Mon, 19 Aug 2002 02:03:02 +0000 (02:03 +0000)]
Update manpage to match to Simo's latest pdbedit changes

21 years agochange notify fix left out of merge by APP_HEAD by accident
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

21 years agoAdd vfstest manpage + fix typo in configure
Jelmer Vernooij [Mon, 19 Aug 2002 01:11:00 +0000 (01:11 +0000)]
Add vfstest manpage + fix typo in configure

21 years agoshould make all platforms happy with popt
Simo Sorce [Mon, 19 Aug 2002 01:02:41 +0000 (01:02 +0000)]
should make all platforms happy with popt

21 years agoAdd 'conf' command to load different smb.conf files
Jelmer Vernooij [Mon, 19 Aug 2002 00:19:44 +0000 (00:19 +0000)]
Add 'conf' command to load different smb.conf files

21 years agoO_NOFOLLOW does not exist on solaris 8 ??
Simo Sorce [Sun, 18 Aug 2002 20:28:16 +0000 (20:28 +0000)]
O_NOFOLLOW does not exist on solaris 8 ??

21 years agoround lock timeouts in lockingX upwards to multiples of 1 second, so a
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

21 years agoAdd entry about block.so
Jelmer Vernooij [Sun, 18 Aug 2002 20:12:43 +0000 (20:12 +0000)]
Add entry about block.so

21 years agoadded exact timing semantics on blocking locks
Andrew Tridgell [Sun, 18 Aug 2002 20:09:02 +0000 (20:09 +0000)]
added exact timing semantics on blocking locks