1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

730 Commits

Author SHA1 Message Date
Gerald Carter
e57fd2c5f0 r5518: Add initial msdfs support to smbclient. Currently I can only
cd up and down the tree and get directory listings.

Still have to figure out how to get a directory listing on a
2k dfs root.  Also have to work out some issues with relative paths
that cross dfs mount points.

We're protected from the new code paths when connecting to
a non-dfs root share ( the flag from the tcon&X is stored
in the struct cli_state* )
2007-10-10 10:55:44 -05:00
Gerald Carter
0449756309 r5495: * add in some code from Mike Nix <mnix@wanm.com.au> for the SMBsplopen
and SMBsplclose commands (BUG 2010)
* clarify some debug messages in smbspool (also from Mike)

my changes:

* start adding msdfs client routines
* enable smbclient to maintain multiple connections
* set the CAP_DFS flag for our internal clienht routines.

I actualy have a dfs referral working in do_cd() but that code
is too ugly to live so I'm not checking it in just yet.
Further work is to merge with vl's changes in trunk to support multiple
TIDs per cli_state *.
2007-10-10 10:55:43 -05:00
Günther Deschner
fdf9bdbbac r5349: After talking with Jerry, reverted the addition of account policies to
passdb in 3_0 (they are still in trunk).

Guenther
2007-10-10 10:55:38 -05:00
Günther Deschner
75af83dfcd r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).
Does automated migration from account_policy.tdb v1 and v2 and offers a
pdbedit-Migration interface. Jerry, please feel free to revert that if
you have other plans.

Guenther
2007-10-10 10:55:08 -05:00
Gerald Carter
bf4385c79a r4821: finish off 'net rpc rights [list|grant|revoke]'
one small todo item is to add a 'accounts' sub option
to 'net rpc list' so enumerate all privileged SIDs
and their associated rights.
2007-10-10 10:53:56 -05:00
Gerald Carter
164f94e529 r4820: add beginnings of 'net rpc rights' for managing privilege assignments 2007-10-10 10:53:55 -05:00
Gerald Carter
77c10ff9aa r4724: Add support for Windows privileges in Samba 3.0
(based on Simo's code in trunk).  Rewritten with the
following changes:

* privilege set is based on a 32-bit mask instead of strings
  (plans are to extend this to a 64 or 128-bit mask before
   the next 3.0.11preX release).
* Remove the privilege code from the passdb API
  (replication to come later)
* Only support the minimum amount of privileges that make
  sense.
* Rewrite the domain join checks to use the SeMachineAccountPrivilege
  instead of the 'is a member of "Domain Admins"?' check that started
  all this.

Still todo:

* Utilize the SePrintOperatorPrivilege in addition to the 'printer admin'
  parameter
* Utilize the SeAddUserPrivilege for adding users and groups
* Fix some of the hard coded _lsa_*() calls
* Start work on enough of SAM replication to get privileges from one
  Samba DC to another.
* Come up with some management tool for manipultaing privileges
  instead of user manager since it is buggy when run on a 2k client
  (haven't tried xp).  Works ok on NT4.
2007-10-10 10:53:51 -05:00
Gerald Carter
054b64fb86 r4645: patch from Rob to fix the build breakage in vfstest after the reload_printers() cleanup 2007-10-10 10:53:49 -05:00
Volker Lendecke
a83e5c1132 r4604: Attempt to fix the buildfarm build.
vfstest refers to reload_printers, only defined in smbd/server.c. Jerry, could
you take a look at that?

Thanks,

Volker
2007-10-10 10:53:49 -05:00
Gerald Carter
1cad525093 r4539: patch from Rob -- adding real printcap name cache function to speed up printcap reloads 2007-10-10 10:53:46 -05:00
Volker Lendecke
b94838aff1 r3705: Nobody has commented, so I'll take this as an ack...
abartlet, I'd like to ask you to take a severe look at this!

We have solved the problem to find the global groups a user is in twice: Once
in auth_util.c and another time for the corresponding samr call. The attached
patch unifies these and sends them through the passdb backend (new function
pdb_enum_group_memberships). Thus it gives pdb_ldap.c the chance to further
optimize the corresponding call if the samba and posix accounts are unified by
issuing a specialized ldap query.

The parameter to activate this ldapsam behaviour is

ldapsam:trusted = yes

Volker
2007-10-10 10:53:15 -05:00
Günther Deschner
b87abdfd0e r3681: Fix build of libsmbclient on x86_64.
Patch from Lars Mueller <lmuelle@suse.de>

Guenther
2007-10-10 10:53:13 -05:00
Günther Deschner
af3ec11f8d r3668: Fix unresolved symbols in libsmbclient.so.
Patch from Lars Müller <lmuelle@suse.de> ( Bugzilla #2013 )

Guenther
2007-10-10 10:53:12 -05:00
Günther Deschner
d22b29ee9c r3469: Fix build of smbmount.
Guenther
2007-10-10 10:53:07 -05:00
Günther Deschner
c4cb2ffa61 r3437: fix the build.
Guenther
2007-10-10 10:53:07 -05:00
Volker Lendecke
0bc5105f71 r3408: Another build fix 2007-10-10 10:53:06 -05:00
Herb Lewis
682b746ab6 r3339: allow tdbtool to be built 2007-10-10 10:53:05 -05:00
Günther Deschner
49a238bd37 r3145: Add experimental idmap_rid-Plugin.
Written by Sumit Bose <sbose@suse.de> and myself a while ago.

idmap_rid does a direct, static mapping between RIDs and UIDs/GIDs using
the idmap-range as offset. It does thus allow to have a unified mapping
over several winbindd-systems without having the need of a central
LDAP-Server (and all related dependencies and problems this solution can
bring).

Compile:
./configure --with-shared-modules=idmap_rid

Usage:
        idmap backend = idmap_rid

idmp_rid does even allow you to have multiple mappings (for trusted
domains). This is a rather problemtic feature and will be turned off by
default rather soon. The problem is that ranges can quickly overlap when
not measured with caution.

        idmap backend = idmap_rid:"MYDOMAIN=1000-9999 OTHER=10000-19999"

Will valgrind idmap_rid later today and fix a couple of things.

Guenther
2007-10-10 10:53:02 -05:00
Tim Potter
9481f2a79e r2453: I think this is the last lot of fixes to get shared libraries working on
HPUX.  This is Richard Allen's suggestion to get HPUX to use cc instead of
ld.

Also he added some missing $(DYNEXP) on link lines and removed the definition
of $(LINK) as it is no longer used in the Makefile.
2007-10-10 10:52:44 -05:00
Jeremy Allison
c2eff8ef1b r2112: Simplify the mangle hash code to use an in-memory tdb.
Should be ready for the new directory code now...
Jeremy.
2007-10-10 10:52:32 -05:00
Jeremy Allison
3fbadac85b r2026: Simplify statcache to use an in-memory tdb. Modify tdb to use
a customer hash function for this tdb (yes it does make a difference
on benchmarks). Remove the no longer used hash.c code.
Jeremy.
2007-10-10 10:52:29 -05:00
Günther Deschner
67bffc5034 r2015: Reverting fix for #1474.
Jelmer, we need to find another way to solve this bug. This way,
rpcclient is linked to libxml2, libmysqlclient and libpg (with according
dependencies in samba-client.rpm's) if one just wants to build the more
experimental pdb-modules as well.

Guenther
2007-10-10 10:52:28 -05:00
Jelmer Vernooij
d5c757d89b r1863: Fix build of exp stuff on Solaris (#1474) 2007-10-10 10:52:22 -05:00
Günther Deschner
8f1716a29b r1692: first commit :)
* add IA64 to the architecture table of printer-drivers

* add new "net"-subcommands:

  net rpc printer migrate {drivers|printers|forms|security|settings|all}
        [printer]
  net rpc share migrate {shares|files|all} [share]

  this is the first part of the migration suite. this will will (once
  feature-complete) allow to do 1:1 server-cloning in the best possible way by
  making heavy use of samba's rpc_client-functions. all migration-steps
  are implemented as rpc/smb-client-calls; net communicates via rpc/smb
  with two servers at the same time (a remote, source server and a
  destination server that currently defaults to the local smbd). this
  allows e. g. printer-driver migration including driverfiles, recursive
  mirroring of file-shares including file-acls, etc. almost any migration
  step can be called with a migrate-subcommand to provide more flexibility
  during a migration process (at the cost of quite some redundancy :) ).

  "net rpc printer migrate settings" is still in a bad condition (many
  open questions that hopefully can be adressed soon).

  "net rpc share migrate security" as an isolated call to just migrate
  share-ACLs will be added later.

  Before playing with it, make sure to use a test-server. Migration is a
  serious business and this tool-set can perfectly overwrite your
  existing file/print-shares.

* along with the migration functions had to make I the following
  changes:

        - implement setprinter level 3 client-side

        - implement net_add_share level 502 client-side

        - allow security descriptor to be set in setprinterdata level 2
          serverside

guenther
2007-10-10 10:52:19 -05:00
Volker Lendecke
359b9dcffe r1531: smbd/tdbutil.c isn't used anymore. Bug 1443 is suspected to be a tdb
corruption problem, and smbd_log_tdb happily destoyed the evidence ....

Volker
2007-10-10 10:52:13 -05:00
Volker Lendecke
cc1881c143 r1318: Install libsmbclient into $(LIBDIR), not into hardcoded ${prefix}/lib. This
helps amd64 systems with /lib and /lib64 and an explicit configure --libdir
setting.

Thanks to Bjoern Jacke <bj@sernet.de>

Volker
2007-10-10 10:52:06 -05:00
Jelmer Vernooij
0ca894d5cf r1220: Revert last change. Apparently, NOTPARALLEL blocks all parallel builds 2007-10-10 10:52:00 -05:00
Jelmer Vernooij
d08ce198b5 r1219: Don't make proto parallel 2007-10-10 10:52:00 -05:00
Jeremy Allison
f0f2e28958 r1215: Intermediate checkin of the new keytab code. I need to make sure I
haven't broken krb5 ticket verification in the mainline code path,
also need to check with valgrind. Everything now compiles (MIT, need
to also check Heimdal) and the "net keytab" utility code will follow.
Jeremy.
2007-10-10 10:52:00 -05:00
Herb Lewis
1f4db0b847 r643: fix typo 2007-10-10 10:51:32 -05:00
Herb Lewis
a9113df6e9 r642: use RPC_CLIENT_OBJ instead of file name
already included in PROTO_OBJ by LIBMSRPC_OBJ
2007-10-10 10:51:31 -05:00
Herb Lewis
86e78bf745 r635: put files that are referenced multiple times in separate
definitions to be consistent.
2007-10-10 10:51:31 -05:00
Volker Lendecke
43870a3fc1 r449: Two AFS-related things:
Split off the non-crypto related parts of lib/afs.c into
lib/afs_settoken.c. This makes wbinfo link without -lcrypto.

Commit vfs_afsacl.c, display & set AFS acls via the NT security editor.

Volker
2007-10-10 10:51:23 -05:00
Stefan Metzmacher
88e6e6d29c r410: merge tpot's changeset 353 from trunk:
Move msdfs.c into the source/smbd directory and remove source/msdfs.

metze
2007-10-10 10:51:22 -05:00
Volker Lendecke
9cb9c5f7c9 r404: Revert the change 378 to vfs_extd_audit.c, the parseable auditing
Implement vfs_full_audit.c that can log every vfs.h operation. So if you
change vfs.h, from now on you also have to change full_audit :-)

Volker
2007-10-10 10:51:21 -05:00
Stefan Metzmacher
2bef5d2741 r329: add the shadow_copy vfs module
I'll add documentation to the Samba-Howto-Collection

metze
2007-10-10 10:51:20 -05:00
Andrew Bartlett
6e1b7a8848 r177: Split ntlm_auth --diagnostics into a seperate file, so as not to clutter
the main ntlm_auth program.

It quite possibly should belong in smbtorture, but relies on the
winbind client for now.

Andrew Bartlett
2007-10-10 10:51:12 -05:00
Gerald Carter
b393469d95 r116: volker's patch for local group and group nesting 2007-10-10 10:51:10 -05:00
Volker Lendecke
b69e8e64d4 r63: Remove -lcrypto from wbinfo. Sorry.
Volker
2007-10-10 10:51:06 -05:00
Volker Lendecke
2df6750a07 This restructures lib/afs.c so that the token data can be but into a
stream. This is to implement wbinfo -k that asks winbind for authentication
which then creates the AFS token for the authenticated user.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
9cb6a4d76f Move the Client-IP based msdfs target expansion to a VFS module.
Volker
0001-01-01 00:00:00 +00:00
Tim Potter
98a25dcda8 Path for bugzilla #1152 from Timur Bakeyev. Allow python modules to
build despite libraries added to LDFLAGS instead of LDPATH.
0001-01-01 00:00:00 +00:00
Jim McDonough
2a679cbc87 Password lockout for LDAP backend. Caches autolock flag, bad count, and
bad time locally, updating the directory only for hitting the policy limit
or resetting.

This needed to be done at the passdb level rather than auth, because some
of the functions need to be supported from tools such as pdbedit.  It was
done at the LDAP backend level instead of generically after discussion,
because of the complexity of inserting it at a higher level.

The login cache read/write/delete is outside of the ldap backend, so it could
easily be called by other backends.  tdbsam won't call it for obvious
reasons, and authors of other backends need to decide if they want to
implement it.
0001-01-01 00:00:00 +00:00
Gerald Carter
b1115c0fc5 include swatdir in 'make showlayout' 0001-01-01 00:00:00 +00:00
Herb Lewis
e6c2d9a3f7 another typo 0001-01-01 00:00:00 +00:00
Herb Lewis
2367d988ae fix typo for tag in proto file 0001-01-01 00:00:00 +00:00
Andrew Bartlett
a893a324f3 Given how core this code is, I figure it should have it's own testsuite.
Big thanks to tpot and mbp for showing how easy it can be to write a simple
unit test, and for providing the STF.

This also changes the strstr_m() code to use strstr_w() (avoiding
duplication) and fixes it so that it passes the STF.

(We now always restart before doing the unicode run, until sombody can
show me why the testsuite is wrong).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
70cc747fdf fix build of lock tests 0001-01-01 00:00:00 +00:00
Gerald Carter
6e22c5da92 merge from old APP_HEAD
* remove corrupt tdb and shutdown (only for printing tdbs, connections,
  sessionid & locking)
* decrement smbd counter in connections.tdb in smb_panic()
* various Makefile hack to get things to link

'max smbd processes' looks like it might be broken.  The counter KEY is not
being set.  Will look into that tomorrow.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
a4392ede33 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
0001-01-01 00:00:00 +00:00