1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

753 Commits

Author SHA1 Message Date
Simo Sorce
7a78c3605e Ok here it is my latest work on privileges
This patch add privilege support for samba
Currently it is implemented only for tdbsam backend but estending it to
other sam backends is straightforward.

I must make a big thank to JFM for his teachings on the matter and the
functions at the base of this work.

At thye moment only samr_create_user honours SeAddUsersPrivilege and
SeMachineAccountPrivilege to permit any user to add machines and/or users to
the server.

The command "net priv" has been provided to manipulate the privileges
database.

There are still many things to do (like support in "net rpc vampire") but
the working core is here.

Feel free to comment/extend on this work.

Of course I will deny that any bug may affect this code :-)
Simo.


This patch adds also my patch about add share command enhancements.
-
Rafal Szczesniak
cfb1b7bda9 Adding ability to operate on trust passwords to pdbedit. This enables
new functionality and testing interface for new pdb functions.

Also, quite a bit of objects is being added to pdbedit in order to make
it able to find domain sid automatically (if not given explicitly).
If such amount of "wisdom" is not required to be in pdbedit, I'll move
it to 'net' which will have this new functionality, anyway.


rafal
-
Gerald Carter
c57b24ee49 tdbsam & smb_panic merge from 3.0 (initial tests are ok but I'll setup a HEAD PDC tomorrow) -
Andrew Bartlett
fb13c61d4e (merge from 3.0)
When we set a domain sid, force get_global_sam_sid() to do it's work again.

This should ensure that the value it returns is always consistant.

Andrew Bartlett
-
Andrew Bartlett
be0704abb9 (merge from 3.0)
Make more functions static, and remove duplication in the use of functions
in lib/smbpasswd.c that were exact duplicates of functions in passdb/passdb.c

(These should perhaps be pulled back out to smbpasswd.c, but that can occour
later).

This also includes some >14 character password changes, and the start
of a move away from using 'admin user' to determine if the user is
root (as root can login without setting 'admin user').

Andrew Bartlett
-
Tim Potter
9ea39d1c78 Replaced .po with .@PICSUFFIX@ -
Andrew Bartlett
765757b357 (merge from 3.0)
Ensure the remote_password_change() gets a valid prototype from proto.h

Andrew Bartlett
-
Jelmer Vernooij
df7666161f Don't built gums by default
(to enable it, run ./configure --with-static-modules=pdb_gums)
-
Andrew Bartlett
8063b8b6c2 (merge from 3.0)
This adds client-side support for the unicode/SAMR password change scheme.

As well as avoiding DOS charset issues, this scheme returns useful error
codes, that we can map back via the pam interface.

This patch also cleans up the interfaces used for password buffers, to
avoid duplication of code.

Andrew Bartlett
-
Simo Sorce
78975e9483 1. The most part of this patch changed the unknown_3 flag to the now known
meaning of fields_present bit mask. Also avoid it being saved in backends (0
is saved where removing the unit32 would have produced a format change).
Also add support in samr functions to correctly interpret the flags.
Flags still not set properly (eg. still set all flags 0xffffff as previous
code), need a tool to test this properly (I',ve done preliminary tests with
samba4 rpc torture and it seem to work properly against w2k).

2. Patch for handlig the flag user must change password at next logon
in usrmgr based on Jianliang Lu <j.lu@tiesse.com> patch
-
Tim Potter
835a28337f Merge of POBAD_CC removal from 3.0 -
Gerald Carter
c98399e3c9 sync HEAD with recent changes in 3.0 -
Jelmer Vernooij
69a9cfdad8 Fix --with-fhs for swatdir -
Andrew Bartlett
2f196bb31a (merge from 3.0)
Move our basic password checking code from inside the authentication
subsystem into a seperate file - ntlm_check.c.

This allows us to call these routines from ntlm_auth.  The purpose of this
exercise is to allow ntlm_auth (when operating as an NTLMSSP server) to
avoid talking to winbind.  This should allow for easier debugging.

ntlm_auth itself has been reorgainised, so as to share more code between
the SPNEGO-wrapped and 'raw' NTLMSSP modes.  A new 'client' NTLMSSP mode
has been added, for use with a Cyrus-SASL module I am writing (based on vl's
work)

Andrew Bartlett
-
Jelmer Vernooij
61cbd5c9be Merge commit to 3_0: add pdb_pgsql -
Gerald Carter
c16e51bfaf working on packaging; also fixed some path issues in configure.in & Makefile.in -
Gerald Carter
915b5eb67f create libdir for installclientlib; patch from Bill Knox -
Volker Lendecke
ed38341c8a I needed a decently parseable format of smbstatus. Looking at smbstatus code
tells me that this should not be expanded, so I implemented

net status [sessions|shares] [parseable]

Volker
-
Jeremy Allison
a571194342 Patch from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> to add
MacOSX (Darwin) specific charset module code. Also had to add AC_CHECK_CPP
to configure.in (this took a *long* time to track down) to make autoconf
work correctly on Fedora Core 1.
Jeremy.
-
Simo Sorce
207968eafc Split smbldap in a core file and a utility file
Add module support for configuration loading

Add a first implementation of config_ldap module to put samba configuration
on ldap

It worked on my test machine, please try it out and send bugfixes :-)

have fun,
Simo.

INSTRUCTIONS:


Just add something like  this to your smb.conf file:
        config backend = config_ldap:ldap://localhost
        config_ldap:basedn = dc=samba,dc=org

the config tree must follow this scheme:
   ou=foo, dc=samba, dc=org <- global section
   |- sambaOptionName=log level, ou=foo, ...  <- options
   |- ...
   |- sambaShareName=testlc, ou=foo, ...  == [testlc]
      |- sambaOptionName=path, sambaShareName=testlc, ou=foo, ... <- option


here is a sample ldif:
# foo, samba, org
dn: ou=foo, dc=samba, dc=org
objectClass: organizationalUnit
objectClass: sambaConfig
ou: foo
description: Test Foo

# log level, foo, samba, org
dn: sambaOptionName=log level, ou=foo, dc=samba, dc=org
objectClass: sambaConfigOption
sambaOptionName: log level
sambaIntegerOption: 10
description: log level 10 is suitable for good debugging

# testlc, foo, samba, org
dn: sambaShareName=testlc, ou=foo, dc=samba, dc=org
objectClass: sambaShare
sambaShareName: testlc
description: share to test ldap config module actually works

# path, testlc, foo, samba, org
dn: sambaOptionName=path, sambaShareName=testlc, ou=foo, dc=samba, dc=org
objectClass: sambaConfigOption
sambaOptionName: path
sambaStringOption: /tmp
description: Path for share testlc

# read only, testlc, foo, samba, org
dn: sambaOptionName=read only, sambaShareName=testlc, ou=foo, dc=samba,
dc=org
objectClass: sambaConfigOption
sambaOptionName: read only
sambaBoolOption: TRUE
description: Share testlc is read only

# guest ok, testlc, foo, samba, org
dn: sambaOptionName=guest ok, sambaShareName=testlc, ou=foo, dc=samba,
dc=org
objectClass: sambaConfigOption
sambaOptionName: guest ok
sambaBoolOption: TRUE
description: Guest users are allowed to connect to testlc share
-
Volker Lendecke
11da19dd5c Compile tdbdump by default.
Volker
-
Tim Potter
079e00d103 Merge from 3.0:
Revision 1.468.2.193:

	       Add ldaplibs to pdbedit link line.  Fixes bug #651.
-
Tim Potter
c96d470af8 Merge of fix for bug 661 from 3.0 -
Tim Potter
b4f3c8d2f6 Merge of some fixes from 3.0:
- Revision 1.468.2.187

      CP* modules are not related to development

  - Revision 1.468.2.191

      Compile fix for tdbbackup when Samba needs to override non-C99
      compliant implementations of snprintf

Sync up formatting for PAM_WINBIND_PICOBJ variable.
-
Jim McDonough
99f4fa5449 Add initshutdown pipe commands to rpcclient. Second part of fix to bug
#534
-
Richard Sharpe
8e3d2708c5 Apply the changes to libsmbclient that derrell has contributed. Fix some
of the problems with this.

From: Derrell.Lipman@unwireduniverse.com
-
Jim McDonough
73882e970a Add server side support for epmapper pipe. Currently only does a fixed
mapping, but this is the base for changes to come.
-
Tim Potter
9b13dae5a9 Merge of wrepld link fix. -
Jelmer Vernooij
c8ec714119 Compile libsmbclient with DYNEXP -
Jim McDonough
747501893c Add epmapper client files to rpcclient build -
Jim McDonough
5537ccf95a Add endpoint mapper parse code -
Simo Sorce
7e2d5da2dc created a new target: genparse
this target will build parse file with genstruct
it is the duty of the developer to commit updated files
this is made to make build platforms independent of a working perl
installation as always been with samba

so currently you need to run:
  make genparse
and commit:
  cvs ci include/tdbsam2_parse_info.h
if you change anything in genparse/genstruct code or tdbsam2 code.

Simo.
-
Tim Potter
0abe1964f7 Use @PICSUFFIX@ instead of .po in Makefile.in since we have gone to
the trouble of detecting what the PIC suffix should actually be.

Change PICFLAG in configure.in to PICFLAGS for consistency.

Patches from Joachim Schmitz <schmitz@hp.com> for bug 574.
-
Simo Sorce
7b3c94b5cf So here it is a non-intrusive patch with my latest work on gums (the
laternative to the current passdb).
Currently it is run through a comatibility module in the passdb layer, with
a subset of the functionality it may provide.
It is still work in progress, but as someone asked me about it, and as it
should make no difference to the normal code, I tought it was a good idea to
put it into.
It adds a dependency on perl. I know it is not very nice, but I'm sure we
will work out a solution for that.

As always blame me if I break something, but try to fix yourself, as I am
busy-busy-busy :-)

Simo.
-
Tim Potter
fd18356fe2 Merge from 3.0:
>Explicitly initialise the value of AR for vendor makes that don't do
>this (HPUX 11).  Currently it's initialised to 'ar' but this may have
>to be changed if any systems pop up that have archivers that aren't
>named 'ar'. Closes bug #552.

>fixed for /sbin/mount.smbfs link when using $DESTDIR; bug 525
-
Gerald Carter
759990833e default DESTDIR=/ -
Simo Sorce
66074d3b09 split some security related functions in their own files.
(no need to include all of smbd files to use some basic sec functions)

also minor compile fixes
-
Gerald Carter
c6a61ffcbd * sync more files from 3.0
* set version string to "CVS 3.1.0alpha1"
-
Tim Potter
2ac5ac4950 Remove tags file for distclean. -
Gerald Carter
c17a7dc9a1 sync 3.0 into HEAD for the last time -
Simo Sorce
3101c236b8 port latest changes from SAMBA_3_0 tree -
Gerald Carter
adb98e7b7c trying to get HEAD building again. If you want the code
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE
-
Herb Lewis
142c54ca92 get rid of CFLAGS from LDSHFLAGS and WINBIND_NSS_LDSHFLAGS and instead
define it in SHLD for those systems that use CC for SHLD
-
Andrew Tridgell
d6de8e8a94 mark the HEAD branch as deprecated. Nothing that a determined
programmer can't work around, but hopefully enough that people will
notice that they should be using the 3.0 branch at the moment
-
Andrew Tridgell
f59a99d8ef installman needs to depend on installdirs, to fix parallel
build/install
-
Jelmer Vernooij
946192393d Use -fPIC when compiling shared modules. Reported by Steve Langasek aka vorlon. -
Tim Potter
7149dc65c7 Add pythoncheck to make check target. -
Tim Potter
895bef1a62 A good reason to use make variables instead of autoconf substitutions
directly - fixed problem where the last line of the link command was
'\ @LDAP_LIBS@'.  If @LDAP_LIBS@ is zero then the backslash
incorrectly includes the next line of the Makefile in the current
target.

This should fix a bucketload of build farm failures.
-
Tim Potter
d15406ad91 AIX doesn't append $SHLIB_EXT to NSS libraries.
Also merged a little bit of abartlet's recent configure.in change of
duplicated IRIX stuff.
-
Simo Sorce
921215cf4b fixes to *_util.c files
add winbindd_passdb backend
this makes it possible to have nua accounts on security = user servers to
show up in unic through nss_winbind.so

the problem is that we do not have group support, so nss group support is
not very good at this time (read: totally absent)

we NEED group support in passdb
-