1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

640 Commits

Author SHA1 Message Date
Jelmer Vernooij
6ab85f1997 Convert to popt.
(This used to be commit 633b3eb7812dc0a58785536a1e7d28329d488b43)
2003-03-23 00:18:44 +00:00
Jelmer Vernooij
6bfe8b7c16 Convert to popt
(This used to be commit 8f285878b30bad7388f69075538c628a7e18ac8a)
2003-03-22 23:51:46 +00:00
Andrew Bartlett
a38e5e6850 Small clenaup patches:
- safe_string.h - don't assume that __FUNCTION__ is available
 - process.c - use new workaround from safe_string.h for the same
 - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc()
 - gencache.c - Keep valgrind quiet by always null terminating.
 - clistr.c - Add copyright
 - srvstr.h - move srvstr_push into a .c file again, as a real function.
 - srvstr.c - revive, with 'safe' checked srvstr_push
 - loadparm.c - set a default for the display charset.

Andrew Bartlett
(This used to be commit a7eba37aadeb0b04cb1bd89deddb58be8aba825c)
2003-03-22 13:06:52 +00:00
Jelmer Vernooij
21fb006207 Convert smbcacls to popt
(This used to be commit 45e5374e89730e7ad497edf9e344fbd1b8992589)
2003-03-20 12:07:52 +00:00
Jelmer Vernooij
4e01382b3a Make swat use popt
(This used to be commit 3cd1650d389850c2a36997a1a404d37bb28130e4)
2003-03-20 11:11:32 +00:00
Jelmer Vernooij
c775678250 Add make rules for passdb/*.so
(This used to be commit ea85f8ff21bfad378eb8464a94bb182cb3e4f988)
2003-03-19 22:16:38 +00:00
Jelmer Vernooij
47ea3a2bf2 Put in the new modules system. It's now used by passdb and rpc. I will
put a doc about it in dev-doc later today.
(This used to be commit af7bfee0c6902c07fdb8d3abccf4c8d6bab00b5a)
2003-03-19 18:45:19 +00:00
Martin Pool
1d2afdcfb7 Get rid of "make check" targets that call nonexistent code.
Add in new ones that run STF, after setting up a PATH and
LD_LIBRARY_PATH that will let them find samba in the build directory.

LD_LIBRARY_PATH is probably not portable but without libtool I don't
know a portable way to do it.  Perhaps the simple solution is just to
link these things statically?
(This used to be commit 27c1626ae0a30bf0f01ea6d6df5836425e6f9547)
2003-03-19 03:55:14 +00:00
Martin Pool
6b2fb1e2fe Add t_strcmp test/torture harness.
(This used to be commit 2c17cb1bd27658ac7a72cb9eccb4b048e9d0ec5f)
2003-03-18 07:13:15 +00:00
Martin Pool
a084f06fe3 Split "clobber" function and variables into its own file before it
grows too much larger.
(This used to be commit 4bbddbfc6a97ebb11e299aa7bd07ebebeab42c65)
2003-03-18 07:09:23 +00:00
Martin Pool
29fa4c1631 Remove static libbigballofmud, which just does not seem to link.
Add bin/t_stringoverflow test case.  Not built by default.
(This used to be commit 7741bb8d18e7ba16522c00513174f2909d75535d)
2003-03-18 05:37:23 +00:00
Andrew Bartlett
4b6b03e183 Fix non-gmake syntax error.
(This used to be commit 97daece056516e52e56bf5a749676e7c53e087e3)
2003-03-15 22:57:00 +00:00
Andrew Bartlett
3b5bc93e9d String handling parinoia fixes.
This patch enables the compile-time checking of strings assable by means of
sizeof().  (Original code had the configure check reversed).

This is extended to all safe_strcpy() users, push_string and pull_string,
as well as the cli and srv derivitives.  There is an attempt to cap strings
at the end of the cli buffer, and clobber_region() of the speified length
(when not -1 :-).

Becouse of the way they are declared, the 'overmalloc a string' users of
safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips
some of the checks).

This whole ball of mud worked fine, until I pulled out my 'fix' for our
statcache.  When jeremy fixes that, we should be able to get back to testing
this stuff.

This patch also includes a 'marker' of the last caller to clobber_region (ie,
the function that called pstrcpy() that called clobber_region) to assist in
debugging problems that may have smashed the stack.  This is printed at
smb_panic() time.  (Original idea and patch by metze).

It also removes some unsused functions, and #if 0's some others that are
unused but probably should be used in the near future.

For now, this patch gives us some confidence on one class of trivial parsing
error in our code.

Andrew Bartlett
(This used to be commit 31f4827acc2a2f00399a5528fc83a0dae5cebaf4)
2003-03-15 07:14:55 +00:00
Gerald Carter
7ae555c43c fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
(This used to be commit 2487480228b99183cab9e34ab497997e0c144ed6)
2003-03-14 23:11:19 +00:00
Rafal Szczesniak
33c8a6779d /tmp/newfun.msg
(This used to be commit 3f4cb7b2c4d9b54b41bcc184ccfd00032e2b021b)
2003-03-14 17:05:13 +00:00
Martin Pool
593ed8d1d9 Add bin/libbigballofmud.a non-shared library. A bit easier to link to
for testing than the .so.  (http://www.laputan.org/mud/mud.html)
(This used to be commit 386087d77f836b8133afc977c9c3e8e7845125dc)
2003-03-13 07:05:10 +00:00
Andrew Bartlett
190708832c Makefile.in for NTLMSSP singing update
(This used to be commit 7717555438e4d74bb63d12abde3573933c15342a)
2003-03-10 02:48:32 +00:00
Andrew Bartlett
2ed7730f2d Change the way we sign SMB packets, to a function pointer interface.
The intention is to allow for NTLMSSP and kerberos signing of packets, but
for now it's just what I call 'simple' signing. (aka SMB signing per the SNIA
spec)

Andrew Bartlett
(This used to be commit b9cf95c3dc04a45de71fb16e85c1bfbae50e6d8f)
2003-03-09 09:23:09 +00:00
Andrew Bartlett
3e19eda335 Remove 'unixsam' from the default passdb backends.
The intention is to remove the muliple passdb backends, but we need the
'guest' account to always be there.  If the admin adds the guest account to
(say) LDAP, there will only be one backend required for operation.

This helps remove some nasty behaviours with adding accounts to the system
for both the RPC 'create user' and the SAMSYNC code.  Users 'added' with
an 'add user/machine' script won't magicly appear, and machine accounts
'pre-added' to unix, but not the smbpasswd file will not cause mayhem.

This commit also implements somthing tridge discussed with me, the concept
of 'default' passdb operation pointers - so that each backend does not
need it's own stub funcitons wrapping the default tdb privilages/group
mapping code.

This also removes an implicit 'sid->name' and 'name->sid' mapping from our
own local SID space, to winbind usernames.  When adding mapping for NIS/LDAP
non-sam users in future, we need to be careful.

Andrew Bartlett
(This used to be commit 6f32fa234961a525760a05418a08ec48d22d7617)
2003-02-22 12:01:05 +00:00
Tim Potter
6a46281dbb Ignore errors on python_clean target.
(This used to be commit 3805a9c5d5e98e089e1cd9e794f7204fc354a311)
2003-02-21 05:51:10 +00:00
Jim McDonough
5bec7f5fca From aliguori@us.ibm.com:
This patch adds the architecture for an IDMAP backend system including a new
smb.conf parameter "winbind backend".  Right now, the only valid value is "tdb"
but I'm currently working on an LDAP backend.
(This used to be commit 35e4448dcb2deb0d5d34d9e974a49f2fb31f1356)
2003-02-20 22:46:37 +00:00
Jelmer Vernooij
5eb7b6113b Add -V option (to print out version) to utilities where possible
(pdbedit already has a -V option..)
(This used to be commit 5de622968d95c1436dbd34edc8d0a9bbff68916b)
2003-02-18 18:43:59 +00:00
Tim Potter
5a32a8491d We don't use mkproto stuff for the python extensions anymore.
(This used to be commit 8d166ae093655a5a14a7478c7a84474b43e8ee97)
2003-02-18 05:08:09 +00:00
Andrew Bartlett
b70258af01 Patch from vorlon@debian.org to split out our -lacl dependency to only smbd
and vfstest.
(This used to be commit bcbc2213230e95d732a774b5aee67295fba4380b)
2003-02-18 00:54:22 +00:00
Tim Potter
96d19c3876 Add KRBCLIENT_OBJ to PYTHON_OBJ list.
(This used to be commit 651be759b3db98133feb6fe8c578964ec7b5cf71)
2003-02-17 04:41:08 +00:00
Jelmer Vernooij
ab1035aa1b Use more portable @SHLIBEXT@ instead of .so
(This used to be commit ba25db83f241a28200132f3dc52f7f5f93a3b00e)
2003-02-15 02:04:41 +00:00
Andrew Bartlett
e4202a9fe7 Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enable
users w/o full administrative access on computer accounts to join a
computer into AD domain.

The patch and detailed changelog is available at:
http://www.itcollege.ee/~aandreim/samba

This is a list of changes in general:

1. When creating machine account do not fail if SD cannot be changed.
   setting SD is not mandatory and join will work perfectly without it.
2. Implement KPASSWD CHANGEPW protocol for changing trust password so
   machine account does not need to have reset password right for itself.
3. Command line utilities no longer interfere with user's existing
   kerberos ticket cache.
4. Command line utilities can do kerberos authentication even if
   username is specified (-U). Initial TGT will be requested in this case.

I've modified the patch to share the kinit code, rather than copying it,
and updated it to current CVS.  The other change included in the original patch
(local realms) has been left out for now.

Andrew Bartlett
(This used to be commit ce52f1c2ed4d3ddafe8ae6258c90b90fa434fe43)
2003-02-15 00:29:21 +00:00
Andrew Bartlett
3b2693f1ae Move our NTLMSSP code into easily seperated peices, not relying on the whole
of libsmb.

Andrew Bartlett
(This used to be commit b5ec7efa80478187124c1cfa8c7fcc4036506a37)
2003-02-15 00:10:09 +00:00
Jim McDonough
bfdf6c9053 Put dynrpc modules as part of make all, when specified in configure.
(This used to be commit b44be1c7c4b8c7a8c1d35fe8b24aeff0ff0af32b)
2003-02-14 20:10:43 +00:00
Andrew Tridgell
faf30e69ae initial server side privileges implementation, using a tdb. This needs to be hooked into pdb, and we need some access control on changing privileges. That's next
(This used to be commit f4f1f84a6bf1d356ccc83f0ecb135bef4a39619e)
2003-02-12 09:14:35 +00:00
Jim McDonough
270631338d remove trailing 'a' from VFS_MODULES targets...fix build
(This used to be commit fa4961b1fc9f0ab2a1c32c56c6200d86a61093c9)
2003-02-11 19:57:17 +00:00
Richard Sharpe
0ad56b68a2 Fix a mistake spotted by Metze
(This used to be commit cf167e9249fee0ea871c0dac28e9a21aeeebd614)
2003-02-10 16:42:24 +00:00
Andrew Bartlett
baff308f16 As metze mentioned, this is the proper way to find perl...
Andrew Bartlett
(This used to be commit f364921864bf4c33580c432f0d328c7ffc48a7df)
2003-02-10 10:36:09 +00:00
Andrew Bartlett
6fa61ac2a8 perl might not be in /usr/bin/perl, so try and find it in the path.
Perhaps this generated file should be autobuilt on samba.org for the
build farm and the tarballs.

Andrew Bartlett
(This used to be commit b8a07da68053b3eebb4f8c9ca9e620a67c878d15)
2003-02-10 09:23:30 +00:00
John Terpstra
5eac9f60cc Added extended audit module that logs to smbd log as well as syslog.
(This used to be commit d2fe7e38b287b87d6c76a9b73724118928941e93)
2003-02-07 05:00:34 +00:00
Andrew Bartlett
e0adea449a Makefile.in change for ldap escaping fixes
(This used to be commit 9f3525967d3a55a0156544733a1e83711bf4be78)
2003-02-01 06:26:16 +00:00
Gerald Carter
4571637a4b patch from Paul Green to only build libsmbclient.so on platforms that support shared libraries
(This used to be commit f739a7263d9da6edc2ecba5b942253c22f7cb3f8)
2003-01-28 20:55:09 +00:00
Richard Sharpe
cefc3a20ce One more fix ... Things link now if you don't use dynamic RPC stuff
(This used to be commit 58a7744f4abebfbf87b9050b98db25c51321defa)
2003-01-27 07:12:20 +00:00
Richard Sharpe
e5e456a66c One more try to get rid of the dependency on GNU MAKE
(This used to be commit a96592fb69fdebc5abe97a0b46055bd1486e7b94)
2003-01-27 06:15:27 +00:00
Richard Sharpe
45d481fa7e Fix the dependency on GNU Make introduced by the DYNAMIC RPC stuff.
I have not tested this in a GNU MAKE environment yet.
(This used to be commit 5e99472d5b68dc393a5468b8949c3ad962a239f7)
2003-01-27 05:54:30 +00:00
Jim McDonough
9eb368e068 Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt for instructions.
(This used to be commit d51e12df78ff8fc721d693fedbd1c633f39edd49)
2003-01-17 20:57:26 +00:00
Andrew Bartlett
5b076fe30b Add LIBSMB_OBJ for the new ntlm_auth functionality.
Andrew Bartlett
(This used to be commit 9128aa3dd2f4bf4a21adac51be1da7c6380d23a0)
2003-01-16 03:32:55 +00:00
Gerald Carter
d344a009ef remove torture tools on make clean
(This used to be commit dfeab6ff24e87e3459d28aa4bbaa5187505c199c)
2003-01-15 19:00:44 +00:00
Andrew Bartlett
58fe4d9c20 Refactor the NTLMSSP code again - this time we use function pointers to
eliminate the dependency on the auth subsystem.  The next step is to add
the required code to 'ntlm_auth', for export to Squid etc.

Andrew Bartlett
(This used to be commit 9e48ab86da40e4c1cafa70c04fb9ebdcce23dfab)
2003-01-15 12:52:38 +00:00
Andrew Bartlett
e3293c7181 Updates to our NTLMSSP code:
This tries to extract our server-side code out of sessetup.c, and into a more
general lib.  I hope this is only a temporay resting place - I indend to
refactor it again into an auth-subsystem independent lib, using callbacks.

Move some of our our NTLMSSP #defines into a new file, and add two that I found
in the COMsource docs - we seem to have a double-up, but I've verified from
traces that the NTLMSSP_TARGET_TYPE_{DOMAIN,SERVER} is real.

This code also copes with ASCII clients - not that we will ever see any here,
but I hope to use this for HTTP, were we can get them.  Win2k authenticates
fine under forced ASCII, btw.

Tested with Win2k, NTLMv2 and Samba's smbclient.

Andrew Bartlett
(This used to be commit b6641badcbb2fb3bfec9d00a6466318203ea33e1)
2003-01-13 12:48:37 +00:00
Gerald Carter
641b30dd35 add $(LDFLAGS) to libsmbclient
(This used to be commit 0f8ba688d427febecfd94e02f1779f4a699a0df2)
2003-01-06 18:00:18 +00:00
Gerald Carter
fc744091d4 make sure we create the PIDDIR and LOCKDIR from installdirs
(This used to be commit 63d057fc7880d2522202451288087306e8fa3806)
2003-01-03 15:31:46 +00:00
Andrew Bartlett
af3124067f debugparse is a seperate utility, no need to include it in the main ubiqx
objects.

Andrew Bartlett
(This used to be commit 23abf75adef2f400414dfafa1248f5f886ae27c0)
2003-01-02 12:58:23 +00:00
Andrew Bartlett
72caa1fc8d Add a new VFS module, that just fiddles the file permissions. Still need to
make it fiddle with NT ACLs (or report no ACL, so Samba fakes it up).

The idea here is that Samba reports an NT ACL to Windows clients, which use
that ACL in downloaded profiles.

If the user doesn't have write permissions on the directories being downloaded,
then it cant put the subfolders in (yes, NT will set perms so that it can't
access the dir as the user the created it) and the profile download fails.

The current solution it to give the user unix write perms to the folders, but
this is rather dangerous - sombody could trojen the profile.  This should
avoid that mess.

I'll test this out properly next week, but it works in vfstest (thanks idra!).

Andrew Bartlett
(This used to be commit 1ad782282a3eb4f89c489a77ad8404099d41d0f9)
2002-12-30 04:19:57 +00:00
Herb Lewis
2134817842 fix make proto to work with SGI smake
(This used to be commit 773e5af6eb61fc38f8e45ea0a2afd6922cc71fd5)
2002-12-17 21:45:50 +00:00