Jim McDonough [Tue, 23 Oct 2001 14:16:22 +0000 (14:16 +0000)]
Add popt for parsing commandline options
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.
Jim McDonough [Mon, 22 Oct 2001 18:14:42 +0000 (18:14 +0000)]
server support for RAP session list function
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
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.
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.
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.
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
Jeremy Allison [Mon, 22 Oct 2001 02:50:20 +0000 (02:50 +0000)]
Fix for @ in pathname from Kian Win.
Jeremy.
Jeremy Allison [Mon, 22 Oct 2001 02:43:20 +0000 (02:43 +0000)]
Renamed inbuilt xstrdup to smb_xstrdup.
Jeremy.
Jeremy Allison [Mon, 22 Oct 2001 02:38:45 +0000 (02:38 +0000)]
Added xstrdup, removed static version from smbpasswd.c
Jeremy.
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.
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.
Tim Potter [Sun, 21 Oct 2001 07:01:01 +0000 (07:01 +0000)]
Fix for fussy Solaris compiler.
Andrew Tridgell [Sun, 21 Oct 2001 06:04:46 +0000 (06:04 +0000)]
patch for neater output() function from vance
Andrew Bartlett [Sun, 21 Oct 2001 04:08:15 +0000 (04:08 +0000)]
Fix for compilation on non-krb5 systems
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
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
Andrew Tridgell [Sun, 21 Oct 2001 03:25:34 +0000 (03:25 +0000)]
made smbclient cope better with arbitrary principle forms
Andrew Tridgell [Sun, 21 Oct 2001 00:11:22 +0000 (00:11 +0000)]
support both old and new kerberos OIDs
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
Tim Potter [Sat, 20 Oct 2001 23:34:40 +0000 (23:34 +0000)]
Converted a bunch of 0x85 constants to SMBkeepalive.
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.
Jim McDonough [Sat, 20 Oct 2001 21:50:51 +0000 (21:50 +0000)]
Use asprintf, do bounds check, better rc logic
Andrew Tridgell [Sat, 20 Oct 2001 11:47:44 +0000 (11:47 +0000)]
crude fix for anonymous session setup with extended security
negotiated
Andrew Tridgell [Sat, 20 Oct 2001 06:50:24 +0000 (06:50 +0000)]
better krb5 error handling (thanks andrewb!)
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
Andrew Tridgell [Sat, 20 Oct 2001 06:29:52 +0000 (06:29 +0000)]
add non_root_mode() check
Andrew Tridgell [Sat, 20 Oct 2001 06:28:11 +0000 (06:28 +0000)]
removed an unused variable
Andrew Tridgell [Sat, 20 Oct 2001 06:27:48 +0000 (06:27 +0000)]
don't need KRB5_DIR define
Andrew Tridgell [Sat, 20 Oct 2001 01:23:27 +0000 (01:23 +0000)]
fixed LDSHFLAGS when using non-standard lib locations
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
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.
Jeremy Allison [Fri, 19 Oct 2001 22:01:55 +0000 (22:01 +0000)]
Added include guards around file.
Jeremy
Jim McDonough [Fri, 19 Oct 2001 19:13:11 +0000 (19:13 +0000)]
Add RAP net share add support
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.
Jim McDonough [Fri, 19 Oct 2001 17:00:11 +0000 (17:00 +0000)]
Add build of net utility
Jim McDonough [Fri, 19 Oct 2001 16:51:26 +0000 (16:51 +0000)]
Add command-line remote management utility
Jim McDonough [Fri, 19 Oct 2001 16:50:15 +0000 (16:50 +0000)]
Add additional client RAP calls
Jim McDonough [Fri, 19 Oct 2001 16:46:34 +0000 (16:46 +0000)]
Add rap.h for net utility and libsmb
Jim McDonough [Fri, 19 Oct 2001 16:34:10 +0000 (16:34 +0000)]
Add header for common RAP definitions
Jeremy Allison [Fri, 19 Oct 2001 09:41:35 +0000 (09:41 +0000)]
Fixed issues with changenotify only being called once in VC++.
Jeremy.
Jeremy Allison [Fri, 19 Oct 2001 08:37:32 +0000 (08:37 +0000)]
Tidy up debug in notify code.
Jeremy.
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.
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.
Jeremy Allison [Fri, 19 Oct 2001 00:56:03 +0000 (00:56 +0000)]
Restored old Bmpx code - actually used by OS/2.
Jeremy.
Jeremy Allison [Fri, 19 Oct 2001 00:02:36 +0000 (00:02 +0000)]
client : Fixed error return.
uid.c: Added missing void.
Jeremy.
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.
Jeremy Allison [Thu, 18 Oct 2001 18:52:01 +0000 (18:52 +0000)]
Merge Gerry's %G change from 2.2.2.
Jeremy.
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.
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.
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.
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...
Andrew Tridgell [Wed, 17 Oct 2001 10:46:46 +0000 (10:46 +0000)]
removed some debug code
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
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.
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?
Jeremy Allison [Tue, 16 Oct 2001 23:52:14 +0000 (23:52 +0000)]
Optimisation to send only to correct processid.
Jeremy
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.
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.
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
Motonobu Takahashi [Tue, 16 Oct 2001 15:28:49 +0000 (15:28 +0000)]
added Italian message file from Simo Source
Andrew Tridgell [Tue, 16 Oct 2001 12:02:18 +0000 (12:02 +0000)]
fix heimdal compilation
Andrew Tridgell [Tue, 16 Oct 2001 11:40:09 +0000 (11:40 +0000)]
fix linking of k5crypto library on openbsd
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.
Andrew Tridgell [Tue, 16 Oct 2001 01:05:49 +0000 (01:05 +0000)]
fixed finding the resolv library
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
Andrew Tridgell [Mon, 15 Oct 2001 12:06:16 +0000 (12:06 +0000)]
updated copyright notices
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.
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
Andrew Tridgell [Mon, 15 Oct 2001 05:15:31 +0000 (05:15 +0000)]
always install swat language files
Andrew Tridgell [Mon, 15 Oct 2001 05:11:31 +0000 (05:11 +0000)]
removed unused gettext code
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
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
Andrew Tridgell [Sun, 14 Oct 2001 13:06:30 +0000 (13:06 +0000)]
fixed typo
Andrew Tridgell [Sun, 14 Oct 2001 12:42:03 +0000 (12:42 +0000)]
forgot to add intl.h
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
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
Andrew Tridgell [Sun, 14 Oct 2001 09:32:14 +0000 (09:32 +0000)]
bit neater talloc_asprintf() implementation
Andrew Tridgell [Sun, 14 Oct 2001 09:25:19 +0000 (09:25 +0000)]
minor Realloc() fix - pedantic
Tim Potter [Sun, 14 Oct 2001 08:31:54 +0000 (08:31 +0000)]
Some reformatting.
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.
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.
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)
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
Simo Sorce [Sat, 13 Oct 2001 12:47:59 +0000 (12:47 +0000)]
introduce mangle backward compatibility functions
add talloc_asprintf()
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.
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.
Tim Potter [Fri, 12 Oct 2001 06:09:39 +0000 (06:09 +0000)]
fixed compiler warning.
Tim Potter [Fri, 12 Oct 2001 06:03:17 +0000 (06:03 +0000)]
This file is really old and not used anymore.
Tim Potter [Fri, 12 Oct 2001 05:59:41 +0000 (05:59 +0000)]
Moved from include subdir.
Tim Potter [Fri, 12 Oct 2001 05:57:35 +0000 (05:57 +0000)]
Moved to rpcclient subdirectory.
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
Andrew Tridgell [Fri, 12 Oct 2001 04:54:53 +0000 (04:54 +0000)]
moved some OIDs to the ASN.1 header
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
Tim Potter [Fri, 12 Oct 2001 03:56:13 +0000 (03:56 +0000)]
Removed some unused code from the recent cleanup.
Jeremy Allison [Fri, 12 Oct 2001 00:01:35 +0000 (00:01 +0000)]
Fix for tdb_oob() on TDB_INTERNAL databases.
Jeremy.
Gerald Carter [Thu, 11 Oct 2001 16:44:17 +0000 (16:44 +0000)]
merge from 2.2
Andrew Tridgell [Thu, 11 Oct 2001 13:49:08 +0000 (13:49 +0000)]
improve the error handling in the ASN1 code a bit
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.