1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-23 00:23:53 +03:00
Commit Graph

310 Commits

Author SHA1 Message Date
Simo Sorce
42ae5eb826 A new utility to test VFS system and modules
Just now it is acommandline tool like smbclient and rpcclient that is able to
perform operations on the file system passing through the vfs layer

It is not complete yet, some functions have simply faked up data, but module
loading works yet and basic operations too.

Thanks to Eric Lorimer for helping out with the initial setup.

Simo.
-
Andrew Bartlett
35eefe7a19 Samba dependency hell claim's another victim...
Back out last night's patch to to reduce -l dependencies until we can ensure
that *all* configurations/platforms work...

Andrew Bartlett
-
Andrew Bartlett
d5f2e33b34 Patch from Steve Langasek <vorlon@netexpress.net> to split up our -l
dependencies.  This benifits packagers (like debian) becouse then our client
code won't have references to 'server only' libraries.

(In particular, it removes the client dependency on CUPS, which was raised in
a debian bug report).

Andrew Bartlett
-
Simo Sorce
56283601af OK!
Finally the cascaded VFS patch is in.
Testing is very welcome, specially with layered multiple vfs modules.
A big thank to Alexander Bokovoy for his work and patience :)

Simo.
-
Tim Potter
a306924c9a Reran configure. -
Simo Sorce
e0988e9186 as per user request added windbind start/stop/restart in swat
almost working, seem it does not yet properly detect if windbind is running or not in all situations testing is welcome.
-
Andrew Tridgell
d76e0838cf reran configure -
Andrew Tridgell
54c7ad47e1 reran configure -
Andrew Bartlett
d1ca2b9f23 Kill off codepage related stuff, now we don't use codepages any more.
Andrew Bartlett
-
Jim McDonough
ce7aa715ba Re-enable kernel change notification on s390 as it has been fixed in the
kernel.
-
Gerald Carter
fea895c5c4 more merges from SAMBA_2_2 -
Gerald Carter
68841ae762 merge of SONAMEFLAG stuff from SAMBA_2_2. If I stepped on something
here because HEAD does it differently, someone let me know.  This looks ok
and compiles fine from what I can tell.
-
Gerald Carter
708c6b8297 merging some autoconf changes from SAMBA_2_2 -
Andrew Bartlett
a8805a34e5 Two things: Check how many paramaters that the LDAP libs take for the
rebind proc (some give an extra paramter to pass a void* paramater) and
some small changes for the SMB signing code to reset things when the
signing starts, and to 'turn off' signing if the session setup failed.

Andrew Bartlett
-
Jim McDonough
df78e76e0b merge 390 kernel workaround from SAMBA_2_2. -
Gerald Carter
65417ed341 merge from 2.2 -
Andrew Bartlett
64aaec137e Make --with-ldapsam 'go away'. This is now a standard, stable, feature
and there is no real reason for it to depend on more than the abilty
to compile the code.
-
Andrew Bartlett
b04561d3fd This removes --with-ssl from Samba.
This option was badly maintained, useless and confused our users and
distirbutors.  (its SSL, therfore it must be good...)

No windows client uses this protocol without help from an SSL tunnel.

I can't see any reason why setting up a unix-side SSL wrapper would
be any more difficult than the > 10 config options this mess added
to samba in any case.

On the Samba client end, I think the LIBSMB_PROG hack should be
sufficient to start stunnel on the unix side.  We might extend this
to take %i and %p (IP and port) if there is demand.

Andrew Bartlett
-
Jim McDonough
d3222ecd1a Fix for non-__va_copy systems. I had used AC_TRY_COMPILE, but even though
__va_copy wasn't defined, it compiled as though it were a function, but
fails on a link.  Oops.
-
Jim McDonough
331132678c Add configure support for __va_copy, which is required on Linux/390 systems
when assigning on va_list to another, or when passing a va_list as an
argument to a function.  Not using it causes segv's and other unpredictable
results.

We need to check all over the place for this...
-
Gerald Carter
d8e8f13f72 merge from SAMBA_2_2 -
Gerald Carter
fbefb479fb more solaris compile fixes (for smbwrapper) -
Jeremy Allison
f137a2cc14 Fix for *BSD linking of VFS modules from "Scot W. Hetzel" <hetzels@westbend.net>
Jeremy.
-
Jeremy Allison
41cec26ee3 Fix to include -Ipopt in getpass test.
Jeremy.
-
Jeremy Allison
32fa089ade Merged in printing fixes... There were many missing !
Jeremy
-
Gerald Carter
7382c3013d merge from SAMBA_2_2 -
Gerald Carter
19b9b50d90 pidfile merge from SAMBA_2_2 (including --with-fhs) and a few other minor things; compiles and shouldnt break, but needs testing -
Andrew Tridgell
38fd99e841 patch from Alexander Bokovoy needed for dlopen on bsd systems -
Andrew Tridgell
78ead78126 reran configure after adding a test for strnlen() -
Andrew Tridgell
7e92fb7453 added strndup() for systems that don't have it -
Jeremy Allison
9f2753a149 Ensure VFS modules will build correctly by adding defines for CPPFLAGS
defines into acconfig.h - only defined if seen.
Jeremy.
-
Tim Potter
a627d69812 Rerun autoconf. -
Tim Potter
5c4ce2129f Rerun autoconf. -
Andrew Tridgell
aa7eab7245 not all versions of gcc support -rdynamic
for example, gcc 2.95.2 on sco1 doesn't
-
Andrew Tridgell
63702ca3a4 try to get the summary test working on OpenBSD -
Jeremy Allison
ac1baba35d Removed HAVE_LIBDL from most places (except system.c). Added checks for
dlopen & friends into configure.in. This should help building on *BSD
where dl*** calls are in libc.
Jeremy
-
Andrew Bartlett
32a8513619 rerun autoconf -
Jeremy Allison
ad1e858d8e Sync up vfs changes from 2.2.x.
Jeremy.
-
Jeremy Allison
56b1252ebc Fixed EXTRA vs EXTGRA typo. Thanks Mike :-).
Jeremy.
-
Jeremy Allison
10e3e6855b Attempt to fix Solaris winbind nss build.
Jeremy.
-
Andrew Bartlett
a1952415f8 Rerun configure -
Andrew Bartlett
cf9cae48e6 Get rid of the unused WL variable from the previous patch. I think these were
meant to be DYNEXP, but I'll confirm that with the original contributor.

Thanks to vance for spotting this!

Andrew Bartlett
-
Andrew Bartlett
0ba24c91bf rerun autoconf -
Herb Lewis
dc3fb2e6dc fix for IRIX toolroot builds -
Andrew Bartlett
ff354c99c5 This is another *BIG* change...
Samba now features a pluggable passdb interface, along the same lines as the
one in use in the auth subsystem.  In this case, only one backend may be active
at a time by the 'normal' interface, and only one backend per passdb_context is
permitted outside that.

This pluggable interface is designed to allow any number of passdb backends to
be compiled in, with the selection at runtime.  The 'passdb backend' paramater
has been created (and documented!) to support this.

As such, configure has been modfied to allow (for example) --with-ldap and the
old smbpasswd to be selected at the same time.

This patch also introduces two new backends:  smbpasswd_nua and tdbsam_nua.
These two backends accept 'non unix accounts', where the user does *not* exist
in /etc/passwd.  These accounts' don't have UIDs in the unix sense, but to
avoid conflicts in the algroitmic mapping of RIDs, they use the values
specified in the 'non unix account range' paramter - in the same way as the
winbind ranges are specifed.

While I was at it, I cleaned up some of the code in pdb_tdb (code copied
directly from smbpasswd and not really considered properly).  Most of this was
to do with % macro expansion on stored data.  It isn't easy to get the macros
into the tdb, and the first password change will 'expand' them.  tdbsam needs
to use a similar system to pdb_ldap in this regard.

This patch only makes minor adjustments to pdb_nisplus and pdb_ldap, becouse I
don't have the test facilities for these.  I plan to incoroprate at least
pdb_ldap into this scheme after consultation with Jerry.

Each (converted) passdb module now no longer has any 'static' variables, and
only exports 1 init function outside its .c file.

The non-unix-account support in this patch has been proven!  It is now possible
to join a win2k machine to a Samba PDC without an account in /etc/passwd!

Other changes:

Minor interface adjustments:
pdb_delete_sam_account() now takes a SAM_ACCOUNT, not a char*.

pdb_update_sam_account() no longer takes the 'override' argument that was being
ignored so often (every other passdb backend).  Extra checks have been added in
some places.

Minor code changes:
smbpasswd no longer attempts to initialise the passdb at startup, this is
now done on first use.

pdbedit has lost some of its 'machine account' logic, as this behaviour is now
controlled by the passdb subsystem directly.

The samr subsystem no longer calls 'local password change', but does the pdb
interactions directly.  This allow the ACB_ flags specifed to be transferred
direct to the backend, without interference.

Doco:

I've updated the doco to reflect some of the changes, and removed some paramters
no longer applicable to HEAD.
-
Andrew Bartlett
d6bd9f1005 rerun autoconf -
Jeremy Allison
2591361fa8 Ensure this is committed last.
Jeremy.
-
Tim Potter
ee0a6f8d26 Although configure.in and configure were checked in at the same time
I think configure.in just beat it to the repository so the timestamp of
configure.in is newer than configure.  )-:
-
Jeremy Allison
6210d4aa19 Getting ready to add UNIX extensions in HEAD also.
Jeremy
-
Jeremy Allison
38cfffea5f Added tests for st_blocks in struct stat, and added a (hateful) constant
the specifies the units that st_blocks is in. The reason for this is
that HPUX uses 8k, AIX uses a #defined constant and everyone else (tm)
uses 512 byte units.
Needed for the CIFS UNIX extensions - coming to a Samba server near
you soon.... :-).
Jeremy.
-