import/samba-cvsimport.git
22 years agoAdd popt for parsing commandline options
Jim McDonough [Tue, 23 Oct 2001 14:16:22 +0000 (14:16 +0000)]
Add popt for parsing commandline options

22 years agoops, some testing code in compat function let only mangled name come back.
Simo Sorce [Mon, 22 Oct 2001 23:25:11 +0000 (23:25 +0000)]
ops, some testing code in compat function let only mangled name come back.

22 years agoserver support for RAP session list function
Jim McDonough [Mon, 22 Oct 2001 18:14:42 +0000 (18:14 +0000)]
server support for RAP session list function

22 years agolets try the new mangling code
Simo Sorce [Mon, 22 Oct 2001 06:53:28 +0000 (06:53 +0000)]
lets try the new mangling code
all the calls go through a compatibility interface will
change that soon
a new mangle.tdb file will be set in the lock directory
it contains a static mapping longname<->manglename

22 years agoa quick fix to get rpcclient working again. This just disables
Andrew Tridgell [Mon, 22 Oct 2001 06:48:35 +0000 (06:48 +0000)]
a quick fix to get rpcclient working again. This just disables
NTLMSSP in cli_establish_connection()

What we really need to do is kill off the pwd_cache code. It is horrible,
and assumes the challenge comes in the negprot reply.

22 years agosamr querydispinfo can change level, start index and max entries.
Jean-François Micouleau [Mon, 22 Oct 2001 06:30:18 +0000 (06:30 +0000)]
samr querydispinfo can change level, start index and max entries.
added level 4 decoding.

J.F.

22 years agoallow the samr commands to work back and the help too ;-)
Jean-François Micouleau [Mon, 22 Oct 2001 06:13:38 +0000 (06:13 +0000)]
allow the samr commands to work back and the help too ;-)

J.F.

22 years ago- fixed link order of krb5 libs
Andrew Tridgell [Mon, 22 Oct 2001 05:04:33 +0000 (05:04 +0000)]
- fixed link order of krb5 libs
- accept a wide range of principal names in session setup

22 years agoFix for @ in pathname from Kian Win.
Jeremy Allison [Mon, 22 Oct 2001 02:50:20 +0000 (02:50 +0000)]
Fix for @ in pathname from Kian Win.
Jeremy.

22 years agoRenamed inbuilt xstrdup to smb_xstrdup.
Jeremy Allison [Mon, 22 Oct 2001 02:43:20 +0000 (02:43 +0000)]
Renamed inbuilt xstrdup to smb_xstrdup.
Jeremy.

22 years agoAdded xstrdup, removed static version from smbpasswd.c
Jeremy Allison [Mon, 22 Oct 2001 02:38:45 +0000 (02:38 +0000)]
Added xstrdup, removed static version from smbpasswd.c
Jeremy.

22 years agoAdded xmalloc - calls smb_panic on zero size or malloc fail.
Jeremy Allison [Mon, 22 Oct 2001 02:34:41 +0000 (02:34 +0000)]
Added xmalloc - calls smb_panic on zero size or malloc fail.
Added xmemdup - calls xmalloc.
Made data_blob() call xmemdup.
Defensive programming (I still hate the no error checking... :-).
Jeremy.

22 years agoOk, I know it's a language thing and it shouldn't matter.... but a kerberos
Jeremy Allison [Sun, 21 Oct 2001 20:51:27 +0000 (20:51 +0000)]
Ok, I know it's a language thing and it shouldn't matter.... but a kerberos
name is a "principal", not a principle. English majors will complain :-).
Jeremy.

22 years agoFix for fussy Solaris compiler.
Tim Potter [Sun, 21 Oct 2001 07:01:01 +0000 (07:01 +0000)]
Fix for fussy Solaris compiler.

22 years agopatch for neater output() function from vance
Andrew Tridgell [Sun, 21 Oct 2001 06:04:46 +0000 (06:04 +0000)]
patch for neater output() function from vance

22 years agoFix for compilation on non-krb5 systems
Andrew Bartlett [Sun, 21 Oct 2001 04:08:15 +0000 (04:08 +0000)]
Fix for compilation on non-krb5 systems

22 years agochange smbd to use HOST/hostname principle form until I work out how
Andrew Tridgell [Sun, 21 Oct 2001 03:27:13 +0000 (03:27 +0000)]
change smbd to use HOST/hostname principle form until I work out how
to use the other form in netjoin

smb_wct is a char, not a word

22 years agochange smbd to use HOST/hostname principle form until I work out how
Andrew Tridgell [Sun, 21 Oct 2001 03:26:24 +0000 (03:26 +0000)]
change smbd to use HOST/hostname principle form until I work out how
to use the other form in netjoin

22 years agomade smbclient cope better with arbitrary principle forms
Andrew Tridgell [Sun, 21 Oct 2001 03:25:34 +0000 (03:25 +0000)]
made smbclient cope better with arbitrary principle forms

22 years agosupport both old and new kerberos OIDs
Andrew Tridgell [Sun, 21 Oct 2001 00:11:22 +0000 (00:11 +0000)]
support both old and new kerberos OIDs

22 years agofixed the spnego detection code in session setup
Andrew Tridgell [Sun, 21 Oct 2001 00:10:16 +0000 (00:10 +0000)]
fixed the spnego detection code in session setup
this gets share mode working again

22 years agoConverted a bunch of 0x85 constants to SMBkeepalive.
Tim Potter [Sat, 20 Oct 2001 23:34:40 +0000 (23:34 +0000)]
Converted a bunch of 0x85 constants to SMBkeepalive.

22 years agoMove from timestamp to gen count file id's for finding oplocked files
Jeremy Allison [Sat, 20 Oct 2001 21:59:34 +0000 (21:59 +0000)]
Move from timestamp to gen count file id's for finding oplocked files
in a tdb.
Jeremy.

22 years agoUse asprintf, do bounds check, better rc logic
Jim McDonough [Sat, 20 Oct 2001 21:50:51 +0000 (21:50 +0000)]
Use asprintf, do bounds check, better rc logic

22 years agocrude fix for anonymous session setup with extended security
Andrew Tridgell [Sat, 20 Oct 2001 11:47:44 +0000 (11:47 +0000)]
crude fix for anonymous session setup with extended security
negotiated

22 years agobetter krb5 error handling (thanks andrewb!)
Andrew Tridgell [Sat, 20 Oct 2001 06:50:24 +0000 (06:50 +0000)]
better krb5 error handling (thanks andrewb!)

22 years agofinished auth when we get a valid kerberos ticket
Andrew Tridgell [Sat, 20 Oct 2001 06:31:25 +0000 (06:31 +0000)]
finished auth when we get a valid kerberos ticket

smbd now works with kerberos authentication if you use a MIT KDC and
smbclient. Next step is to make it work with a windows client

22 years agoadd non_root_mode() check
Andrew Tridgell [Sat, 20 Oct 2001 06:29:52 +0000 (06:29 +0000)]
add non_root_mode() check

22 years agoremoved an unused variable
Andrew Tridgell [Sat, 20 Oct 2001 06:28:11 +0000 (06:28 +0000)]
removed an unused variable

22 years agodon't need KRB5_DIR define
Andrew Tridgell [Sat, 20 Oct 2001 06:27:48 +0000 (06:27 +0000)]
don't need KRB5_DIR define

22 years agofixed LDSHFLAGS when using non-standard lib locations
Andrew Tridgell [Sat, 20 Oct 2001 01:23:27 +0000 (01:23 +0000)]
fixed LDSHFLAGS when using non-standard lib locations

22 years agoquick fix for krb5 compilation. I've told vance how to fix this module
Andrew Tridgell [Sat, 20 Oct 2001 00:48:28 +0000 (00:48 +0000)]
quick fix for krb5 compilation. I've told vance how to fix this module
properly and will wait for him to send a patch

22 years agoEnsure we mask off deny modes correctly on being set (this shouldn't have
Jeremy Allison [Fri, 19 Oct 2001 23:56:21 +0000 (23:56 +0000)]
Ensure we mask off deny modes correctly on being set (this shouldn't have
caused problems but is tidier).
Fix debug statement in locking.c
Jeremy.

22 years agoAdded include guards around file.
Jeremy Allison [Fri, 19 Oct 2001 22:01:55 +0000 (22:01 +0000)]
Added include guards around file.
Jeremy

22 years agoAdd RAP net share add support
Jim McDonough [Fri, 19 Oct 2001 19:13:11 +0000 (19:13 +0000)]
Add RAP net share add support

22 years agoprint in a human readable format when the password expired.
Jean-François Micouleau [Fri, 19 Oct 2001 17:30:05 +0000 (17:30 +0000)]
print in a human readable format when the password expired.

J.F.

22 years agoAdd build of net utility
Jim McDonough [Fri, 19 Oct 2001 17:00:11 +0000 (17:00 +0000)]
Add build of net utility

22 years agoAdd command-line remote management utility
Jim McDonough [Fri, 19 Oct 2001 16:51:26 +0000 (16:51 +0000)]
Add command-line remote management utility

22 years agoAdd additional client RAP calls
Jim McDonough [Fri, 19 Oct 2001 16:50:15 +0000 (16:50 +0000)]
Add additional client RAP calls

22 years agoAdd rap.h for net utility and libsmb
Jim McDonough [Fri, 19 Oct 2001 16:46:34 +0000 (16:46 +0000)]
Add rap.h for net utility and libsmb

22 years agoAdd header for common RAP definitions
Jim McDonough [Fri, 19 Oct 2001 16:34:10 +0000 (16:34 +0000)]
Add header for common RAP definitions

22 years agoFixed issues with changenotify only being called once in VC++.
Jeremy Allison [Fri, 19 Oct 2001 09:41:35 +0000 (09:41 +0000)]
Fixed issues with changenotify only being called once in VC++.
Jeremy.

22 years agoTidy up debug in notify code.
Jeremy Allison [Fri, 19 Oct 2001 08:37:32 +0000 (08:37 +0000)]
Tidy up debug in notify code.
Jeremy.

22 years agoFixed some memory leaks introduced by connection handling rewrite, as well
Tim Potter [Fri, 19 Oct 2001 08:22:52 +0000 (08:22 +0000)]
Fixed some memory leaks introduced by connection handling rewrite, as well
as one memory leak that has been there for ages!

Changed the way talloc is used in get{pw,gr}nam routines.

22 years agoConverted some more functions to create and dispose of a talloc context on a
Tim Potter [Fri, 19 Oct 2001 01:46:43 +0000 (01:46 +0000)]
Converted some more functions to create and dispose of a talloc context on a
per-call basis rather than per-connection.

Had a bit more of a reformatting fest.

Still need to run it through insure and handle downed connections.

22 years agoRestored old Bmpx code - actually used by OS/2.
Jeremy Allison [Fri, 19 Oct 2001 00:56:03 +0000 (00:56 +0000)]
Restored old Bmpx code - actually used by OS/2.
Jeremy.

22 years agoclient : Fixed error return.
Jeremy Allison [Fri, 19 Oct 2001 00:02:36 +0000 (00:02 +0000)]
client : Fixed error return.
uid.c: Added missing void.
Jeremy.

22 years agoMerge the become_XXX -> change_to_XXX fixes from 2.2.2 to HEAD.
Jeremy Allison [Thu, 18 Oct 2001 20:15:12 +0000 (20:15 +0000)]
Merge the become_XXX -> change_to_XXX fixes from 2.2.2 to HEAD.
Ensure make_conection() can only be called as root.
Jeremy.

22 years agoMerge Gerry's %G change from 2.2.2.
Jeremy Allison [Thu, 18 Oct 2001 18:52:01 +0000 (18:52 +0000)]
Merge Gerry's %G change from 2.2.2.
Jeremy.

22 years agogot rid of start_background_queue()
Andrew Tridgell [Thu, 18 Oct 2001 10:40:36 +0000 (10:40 +0000)]
got rid of start_background_queue()

THIS WAS A DISASTER!

it created hundreds of processes on the build farm machines, which we
can't kill.

22 years agothe beginnings of kerberos support in smbd. It doesn't work yet, but
Andrew Tridgell [Thu, 18 Oct 2001 10:26:06 +0000 (10:26 +0000)]
the beginnings of kerberos support in smbd. It doesn't work yet, but
it should give something for others to hack on and possibly find what
I'm doing wrong.

22 years agoRenamed vfs_init() to smbd_vfs_init() to allow vfs modules to compile.
Tim Potter [Thu, 18 Oct 2001 00:27:20 +0000 (00:27 +0000)]
Renamed vfs_init() to smbd_vfs_init() to allow vfs modules to compile.

22 years agoNow compiles under head branch.
Tim Potter [Thu, 18 Oct 2001 00:21:48 +0000 (00:21 +0000)]
Now compiles under head branch.

Funny, I don't remember using libtool in the original Makefile...

22 years agoremoved some debug code
Andrew Tridgell [Wed, 17 Oct 2001 10:46:46 +0000 (10:46 +0000)]
removed some debug code

22 years agoadded basic NTLMSSP support in smbd. This is still quite rough, and
Andrew Tridgell [Wed, 17 Oct 2001 08:54:19 +0000 (08:54 +0000)]
added basic NTLMSSP support in smbd. This is still quite rough, and
loses things like username mapping. I wanted to get this in then
discuss it a bit to see how we want to split up the existing
session setup code

22 years agoFixed inconsistent definitions of InBuf/OutBuf/last_char.
Jeremy Allison [Wed, 17 Oct 2001 01:38:23 +0000 (01:38 +0000)]
Fixed inconsistent definitions of InBuf/OutBuf/last_char.
Noticed by albert chin (china@thewrittenword.com) .
Jeremy.

22 years agocharset_initialise() doesn't exist anymore.
Tim Potter [Wed, 17 Oct 2001 00:11:02 +0000 (00:11 +0000)]
charset_initialise() doesn't exist anymore.

Why don't we build smbwrapper on a build farm machine to spot this sort of
thing earlier?

22 years agoOptimisation to send only to correct processid.
Jeremy Allison [Tue, 16 Oct 2001 23:52:14 +0000 (23:52 +0000)]
Optimisation to send only to correct processid.
Jeremy

22 years agovery simple asynchronous "lpq" thread patch
Jean-François Micouleau [Tue, 16 Oct 2001 23:16:00 +0000 (23:16 +0000)]
very simple asynchronous "lpq" thread patch

To speed up operations with the lpq command, it's now run in a separate
asynchronous process.

Opening the Printers folder on NT is now fast ;-) I think even faster than
with a ** server

Jeremy, you should look at that patch to include it in 2.2.3

J.F.

22 years agoFix some unicode string error.
Jean-François Micouleau [Tue, 16 Oct 2001 22:42:24 +0000 (22:42 +0000)]
Fix some unicode string error.

I'm wondering if I have to audit *all* the rpc code for that kind of
trouble ;-) Oh well I've done it twice already, I can do it a third time
;-)

J.F.

22 years agoDon't core dump when using spinlocks on a read-only tdb. Unfortunately this
Jeremy Allison [Tue, 16 Oct 2001 22:10:23 +0000 (22:10 +0000)]
Don't core dump when using spinlocks on a read-only tdb. Unfortunately this
means that a read-write opener and a read-only opener are using different
locking mechanisms - this needs to be addressed, but it's hard as the
read-write opener using the spinlocks is usually first, so there's no
way to force them to change down to the fcntl method.
Read only access is less important anyway and can never corrupt the
tdb anyway, so errors in read-only record reads are more tolerable.
Jeremy

22 years agoadded Italian message file from Simo Source
Motonobu Takahashi [Tue, 16 Oct 2001 15:28:49 +0000 (15:28 +0000)]
added Italian message file from Simo Source

22 years agofix heimdal compilation
Andrew Tridgell [Tue, 16 Oct 2001 12:02:18 +0000 (12:02 +0000)]
fix heimdal compilation

22 years agofix linking of k5crypto library on openbsd
Andrew Tridgell [Tue, 16 Oct 2001 11:40:09 +0000 (11:40 +0000)]
fix linking of k5crypto library on openbsd

22 years agoFix for connectinos.tdb error message from "Richard Bollinger" <rabollinger@home...
Jeremy Allison [Tue, 16 Oct 2001 08:39:43 +0000 (08:39 +0000)]
Fix for connectinos.tdb error message from "Richard Bollinger" <rabollinger@home.com>
Jeremy.

22 years agofixed finding the resolv library
Andrew Tridgell [Tue, 16 Oct 2001 01:05:49 +0000 (01:05 +0000)]
fixed finding the resolv library

22 years agoremove zh_CN.msg because there is no maintainer.
Motonobu Takahashi [Mon, 15 Oct 2001 13:14:05 +0000 (13:14 +0000)]
remove zh_CN.msg because there is no maintainer.
and correct some strings in ja.msg

22 years agoupdated copyright notices
Andrew Tridgell [Mon, 15 Oct 2001 12:06:16 +0000 (12:06 +0000)]
updated copyright notices

22 years ago- renamed *.po message files to *.msg
Andrew Tridgell [Mon, 15 Oct 2001 08:10:07 +0000 (08:10 +0000)]
- renamed *.po message files to *.msg
- fixed minor bug in lang_tdb.c

the msg files are still in a po/ directory, but unfortunately that is
not easy to fix given the terrible handling of directories in CVS.

22 years agosplit session setup code out of reply.c in preparation for adding
Andrew Tridgell [Mon, 15 Oct 2001 07:50:21 +0000 (07:50 +0000)]
split session setup code out of reply.c in preparation for adding
NTLMSSP and kerberos support in smbd

22 years agoalways install swat language files
Andrew Tridgell [Mon, 15 Oct 2001 05:15:31 +0000 (05:15 +0000)]
always install swat language files

22 years agoremoved unused gettext code
Andrew Tridgell [Mon, 15 Oct 2001 05:11:31 +0000 (05:11 +0000)]
removed unused gettext code

22 years agoinclude more libs needed for kerberos5 on some systems (eg. solaris)
Andrew Tridgell [Mon, 15 Oct 2001 01:54:39 +0000 (01:54 +0000)]
include more libs needed for kerberos5 on some systems (eg. solaris)

removed some no longer needed i18n stuff from configure.in

22 years agofixed the --with-krb5=dir option.
Andrew Tridgell [Sun, 14 Oct 2001 14:04:55 +0000 (14:04 +0000)]
fixed the --with-krb5=dir option.

thanks to monyo for pointing out the problem

22 years agofixed typo
Andrew Tridgell [Sun, 14 Oct 2001 13:06:30 +0000 (13:06 +0000)]
fixed typo

22 years agoforgot to add intl.h
Andrew Tridgell [Sun, 14 Oct 2001 12:42:03 +0000 (12:42 +0000)]
forgot to add intl.h

22 years agoreturn of vsnprintf doesn't include termination
Andrew Tridgell [Sun, 14 Oct 2001 12:40:26 +0000 (12:40 +0000)]
return of vsnprintf doesn't include termination
thanks to simo for spotting this

22 years agothe next step in the intl changeover. This should get us compiling agian,
Andrew Tridgell [Sun, 14 Oct 2001 12:10:29 +0000 (12:10 +0000)]
the next step in the intl changeover. This should get us compiling agian,
and also completes the switch to lang_tdb.c. SWAT should now work
with a po file in the lib/ directory

also removed useless SYSLOG defines in many files

22 years agobit neater talloc_asprintf() implementation
Andrew Tridgell [Sun, 14 Oct 2001 09:32:14 +0000 (09:32 +0000)]
bit neater talloc_asprintf() implementation

22 years agominor Realloc() fix - pedantic
Andrew Tridgell [Sun, 14 Oct 2001 09:25:19 +0000 (09:25 +0000)]
minor Realloc() fix - pedantic

22 years agoSome reformatting.
Tim Potter [Sun, 14 Oct 2001 08:31:54 +0000 (08:31 +0000)]
Some reformatting.

22 years agoPass domain structure around in cache code rather than the domain name.
Tim Potter [Sun, 14 Oct 2001 08:30:30 +0000 (08:30 +0000)]
Pass domain structure around in cache code rather than the domain name.

22 years agoResurrected sam sequence number code.
Tim Potter [Sun, 14 Oct 2001 08:26:45 +0000 (08:26 +0000)]
Resurrected sam sequence number code.

Pass domain structure around in cache code rather than the domain name.

Some misc reformatting to make things look prettier.

22 years agofixed NTLMSSP with XP servers (who don't send the duplicate challenge
Andrew Tridgell [Sun, 14 Oct 2001 06:14:11 +0000 (06:14 +0000)]
fixed NTLMSSP with XP servers (who don't send the duplicate challenge
in the asn1 spnego structures)

22 years agofixed two bugs in the NTLMSSP code
Andrew Tridgell [Sun, 14 Oct 2001 05:42:28 +0000 (05:42 +0000)]
fixed two bugs in the NTLMSSP code
 - handle servers that don't send a kerberos principle (non-member servers)
 - enable spnego without KRB5

22 years agointroduce mangle backward compatibility functions
Simo Sorce [Sat, 13 Oct 2001 12:47:59 +0000 (12:47 +0000)]
introduce mangle backward compatibility functions
add talloc_asprintf()

22 years agoMade nt acl support a local parameter for w2ksp2 profile fix.
Jeremy Allison [Fri, 12 Oct 2001 22:00:38 +0000 (22:00 +0000)]
Made nt acl support a local parameter for w2ksp2 profile fix.
Jeremy.

22 years agoConverted a few winbind functions to use a talloc context that is destroyed
Tim Potter [Fri, 12 Oct 2001 08:28:08 +0000 (08:28 +0000)]
Converted a few winbind functions to use a talloc context that is destroyed
immediately after the call.

22 years agofixed compiler warning.
Tim Potter [Fri, 12 Oct 2001 06:09:39 +0000 (06:09 +0000)]
fixed compiler warning.

22 years agoThis file is really old and not used anymore.
Tim Potter [Fri, 12 Oct 2001 06:03:17 +0000 (06:03 +0000)]
This file is really old and not used anymore.

22 years agoMoved from include subdir.
Tim Potter [Fri, 12 Oct 2001 05:59:41 +0000 (05:59 +0000)]
Moved from include subdir.

22 years agoMoved to rpcclient subdirectory.
Tim Potter [Fri, 12 Oct 2001 05:57:35 +0000 (05:57 +0000)]
Moved to rpcclient subdirectory.

22 years agoSome old stuff hanging around since the CIFS conference. Big cleanup of
Tim Potter [Fri, 12 Oct 2001 05:56:23 +0000 (05:56 +0000)]
Some old stuff hanging around since the CIFS conference.  Big cleanup of
rpcclient code.  Refactored cmd_* functions to move common mem_ctx and pipe
opening stuff up one level.  Moved rpcclient.h into rpcclient directory and
out of includes/smb.h

22 years agomoved some OIDs to the ASN.1 header
Andrew Tridgell [Fri, 12 Oct 2001 04:54:53 +0000 (04:54 +0000)]
moved some OIDs to the ASN.1 header

22 years agoadded NTLMSSP authentication to libsmb. It seems to work well so I have enabled it...
Andrew Tridgell [Fri, 12 Oct 2001 04:49:42 +0000 (04:49 +0000)]
added NTLMSSP authentication to libsmb. It seems to work well so I have enabled it by default if the server supports it. Let me know if this breaks anything. Choose kerberos with the -k flag to smbclient, otherwise it will use SPNEGO/NTLMSSP/NTLM

22 years agoRemoved some unused code from the recent cleanup.
Tim Potter [Fri, 12 Oct 2001 03:56:13 +0000 (03:56 +0000)]
Removed some unused code from the recent cleanup.

22 years agoFix for tdb_oob() on TDB_INTERNAL databases.
Jeremy Allison [Fri, 12 Oct 2001 00:01:35 +0000 (00:01 +0000)]
Fix for tdb_oob() on TDB_INTERNAL databases.
Jeremy.

22 years agomerge from 2.2
Gerald Carter [Thu, 11 Oct 2001 16:44:17 +0000 (16:44 +0000)]
merge from 2.2

22 years agoimprove the error handling in the ASN1 code a bit
Andrew Tridgell [Thu, 11 Oct 2001 13:49:08 +0000 (13:49 +0000)]
improve the error handling in the ASN1 code a bit

22 years agoadded a ASN.1 parser, so now I can properly parse the negTokenInit
Andrew Tridgell [Thu, 11 Oct 2001 13:13:06 +0000 (13:13 +0000)]
added a ASN.1 parser, so now I can properly parse the negTokenInit
packet which means I can extract the service and realm, so we should
now work with realms other than the local realm.

it also means we now check the list of OIDs given by the server just
in case it says that it doesn't support kerberos. In that case we
should fall back to NTLMSSP but that isn't written yet.