1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
Commit Graph

622 Commits

Author SHA1 Message Date
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 6f32fa2349)
2003-02-22 12:01:05 +00:00
Tim Potter
6a46281dbb Ignore errors on python_clean target.
(This used to be commit 3805a9c5d5)
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 35e4448dcb)
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 5de622968d)
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 8d166ae093)
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 bcbc221323)
2003-02-18 00:54:22 +00:00
Tim Potter
96d19c3876 Add KRBCLIENT_OBJ to PYTHON_OBJ list.
(This used to be commit 651be759b3)
2003-02-17 04:41:08 +00:00
Jelmer Vernooij
ab1035aa1b Use more portable @SHLIBEXT@ instead of .so
(This used to be commit ba25db83f2)
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 ce52f1c2ed)
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 b5ec7efa80)
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 b44be1c7c4)
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 f4f1f84a6b)
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 fa4961b1fc)
2003-02-11 19:57:17 +00:00
Richard Sharpe
0ad56b68a2 Fix a mistake spotted by Metze
(This used to be commit cf167e9249)
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 f364921864)
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 b8a07da680)
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 d2fe7e38b2)
2003-02-07 05:00:34 +00:00
Andrew Bartlett
e0adea449a Makefile.in change for ldap escaping fixes
(This used to be commit 9f3525967d)
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 f739a7263d)
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 58a7744f4a)
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 a96592fb69)
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 5e99472d5b)
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 d51e12df78)
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 9128aa3dd2)
2003-01-16 03:32:55 +00:00
Gerald Carter
d344a009ef remove torture tools on make clean
(This used to be commit dfeab6ff24)
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 9e48ab86da)
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 b6641badcb)
2003-01-13 12:48:37 +00:00
Gerald Carter
641b30dd35 add $(LDFLAGS) to libsmbclient
(This used to be commit 0f8ba688d4)
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 63d057fc78)
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 23abf75ade)
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 1ad782282a)
2002-12-30 04:19:57 +00:00
Herb Lewis
2134817842 fix make proto to work with SGI smake
(This used to be commit 773e5af6eb)
2002-12-17 21:45:50 +00:00
Simo Sorce
48fb7b090e updates to the gums
introduce genparser will be used by tdbsam2
(This used to be commit 831d3d1ec7)
2002-12-16 12:11:02 +00:00
Gerald Carter
f6c4f25e43 merge of get_dc_name()-like code from APP_HEAD; better support password server = DC1 *
(This used to be commit 6b18ca9511)
2002-12-12 23:35:55 +00:00
Richard Sharpe
117589526f Add support to Makefile.in for editreg
Fix a couple of duplicated macros.
(This used to be commit 5273844a74)
2002-12-10 21:29:03 +00:00
Richard Sharpe
2a8b92abd3 A small fix to Makefile.in from Bradley Longhurst.
Less Fir needed.
(This used to be commit 481fa87154)
2002-12-08 18:48:48 +00:00
Andrew Bartlett
9de7abd8db Link less with smbmnt and smbumount. Also change from a pstrcpy() to a
strncpy() to make it clear that we must operate on a PATH_MAX sized buffer.

Andrew Bartlett
(This used to be commit 49d9698ef0)
2002-12-01 04:11:20 +00:00
Andrew Bartlett
f238a3e58b Patch from Paul Green to detect exe extensions, needed for Stratus VOS.
Andrew Bartlett
(This used to be commit 3f5608c7e0)
2002-12-01 01:35:40 +00:00
Tim Potter
7916923943 Fix up smbwrapper target.
(This used to be commit f5fa4801ce)
2002-11-29 01:19:27 +00:00
Jelmer Vernooij
ad4849825e merge in some changes from metze's patches (rest follows later, after
some issues in the new module system have been resolved)
(This used to be commit 5b4d03fc85)
2002-11-28 18:45:11 +00:00
Jelmer Vernooij
fcbd2693c9 Add PDBLIBDIR, just like VFSLIBDIR
(This used to be commit 3d0735e6b0)
2002-11-28 14:26:32 +00:00
Gerald Carter
4060d198bf merging changes from SAMBA_3_0 relating to RPM packaging
(This used to be commit 1cf0cfa1b7)
2002-11-27 16:59:31 +00:00
Andrew Bartlett
65643516d7 Having waited for *way* too long, this is mimir's namecache and trusted domain
cache code.

This uses gencache, mimir's new caching code that stores at text-based cache
of various data.

Mimir has done a *lot* of work on this patch, and it is finally time to
get it in CVS.

Andrew Bartlett
(This used to be commit 47f3bfe956)
2002-11-26 11:57:30 +00:00
Gerald Carter
585e8a8c02 [print notify fixes from APP_HEAD]
* fixing change notify on print server handle
 * adding change notify support into smbcontrol for sending comment
   changes, etc...

All part of CR 1159/1160
(This used to be commit 256d8c27cd)
2002-11-26 00:01:56 +00:00
Andrew Bartlett
e388334ed7 Try to twiddle with the makefile to avoid having a trailing \ when we
don't build any extra programs.
(This used to be commit 9bac0b7277)
2002-11-24 08:42:10 +00:00
Andrew Bartlett
5aca399a38 Add ntlm_auth, a new program to provide a stable interface to winbind's
authentication code.

In particular, ntlm_auth is designed to replace the winbind authentication
'helpers' currently supplied by Squid.  I have added support for the current
plaintext password protocol used by Squid, and will add the real guts (NTLMSSP
support) shortly.

I'll merge this into 3.0 when I've got the interface more stable (error message
format etc) and got the important NTLMSSP support added.

Also move SWAT's URL decoding code into util_str.c, for use in both utilities.

Andrew Bartlett
(This used to be commit 82dbf83887)
2002-11-24 08:32:03 +00:00
Tim Potter
4c3f069028 Here's a bit of a cleanup of the {configure,Makefile}.in files. I've
now combined all the ad-hoc AC_SUBST variables into three generalised
ones:

  EXTRA_BIN_PROGS 	Additional programs to install in ${prefix}/sbin
  EXTRA_SBIN_PROGS 	Additional programs to install in ${prefix}/bin
  EXTRA_ALL_TARGETS     Additional targets to build by default
  SHLIB_PROGS           Shared library objects (pam, winbind) to build

We also build some extra stuff by default: the python extensions (if
--with-python specified), smbmount related binaries (if
--with-smbmount specified), and the samba torture suite.

The idea behind this is to have everything that is configured built by
default to detect breakage as soon as possible when people make low
level changes.
(This used to be commit d6dfe3ea69)
2002-11-22 06:54:12 +00:00
Jelmer Vernooij
9da3d41f3c Use smb_register_passdb() - plus some small fixes
(This used to be commit 2addbaff35)
2002-11-15 17:01:24 +00:00
Tim Potter
6c0dafc0c0 A cool idea from mbp: create a big shared library of all Samba objects
which we can use to link against Samba unit test programs.  Now we can
compile and link unit tests without having to create 4MB executables
for each program

It's called libbigballofmud.so both to discourage casual usage and
also to reflect what the dependencies within Samba have become.
(This used to be commit a59f731256)
2002-11-15 00:33:55 +00:00
Tim Potter
1237ae89c6 Quieten status message when linking libsmbclient.so
(This used to be commit 85946731dd)
2002-11-14 00:53:40 +00:00