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

53840 Commits

Author SHA1 Message Date
Jelmer Vernooij
fe2b04b4bb python: Move helper functions for using param into a separate file rather
than linking against the python module.
2009-06-02 18:05:40 +02:00
Jelmer Vernooij
42fa7ec823 Split up Python code a little bit so we don't hav eto link python modules
to each other.
2009-06-02 18:05:40 +02:00
Jelmer Vernooij
4602cc0ac1 Build libsamba-util as a shared library. 2009-06-02 18:05:40 +02:00
Jelmer Vernooij
f90782f228 Fix dependencies when using shared libraries. 2009-06-02 18:05:39 +02:00
Mathias Dietz
15e10c6a84 Store winattrs in GPFS
1. Store win attributes in gpfs instead of posix bits.
    2. use of path based winattr calls of gpfs.

    Signed-off-by: Mathias Dietz <mdietz@de.ibm.com>
2009-06-02 17:03:59 +02:00
Günther Deschner
011a505800 nss_wrapper: prefix function pointer names in struct nwrap_ops.
Guenther
2009-06-02 14:52:53 +02:00
Günther Deschner
68bb2d2e80 torture: minor fixes to torture macro text output.
Guenther
2009-06-02 13:12:09 +02:00
Günther Deschner
8684911bda nss_wrapper: resort calls to move public calls to the end.
Guenther
2009-06-02 13:11:57 +02:00
Günther Deschner
81e820c1aa nss_wrapper: add nwrap_ops function pointer table.
Guenther
2009-06-02 13:11:49 +02:00
Günther Deschner
9a7a97856a nss_wrapper: make sure to return after calling real_{set,end}{gr,pw}ent.
Guenther
2009-06-02 13:11:42 +02:00
Günther Deschner
94f2ef4f72 nss_wrapper: fix typo while checking for getgrid_r support.
Metze, this has been in here for a long time, please check.

Guenther
2009-06-02 13:11:33 +02:00
Volker Lendecke
84090c95a5 Add a "connectpath" operation to the shadow_copy2 module 2009-06-02 11:58:22 +02:00
Volker Lendecke
56efcb7b72 Add SMB_VFS_CONNECTPATH operation
This is required for the shadow_copy2 module and "wide links = no". The file
system snapshots by nature are typically outside of share directory. So the
REALPATH result fails the wide links = no test.
2009-06-02 11:58:22 +02:00
Volker Lendecke
83ffbb4ec4 Remove a variable used just once 2009-06-02 11:58:22 +02:00
Jeremy Allison
cdb765a76c Fix bug #6419 - smbclient -L 127.0.0.1" displays "netbios name" instead of "workgroup"
Unify the handling of the sessionsetup parsing so we don't get different
results when parsing a guest reply than an ntlmssp reply.
Jeremy.
2009-06-01 14:38:56 -07:00
Andrew Tridgell
50043177e8 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-06-01 22:04:00 +10:00
Andrew Tridgell
73c8566d95 use the unique flag on ldb attributes to optimise & clauses
When a attribute is marked unique we know that if we find a match
it will be the only possible match. This means that in a list of
subtrees connected by an &, it is best to first load the index values
for the unique entries, as if they find something then we know we
won't have to look any further.

This helps with searches like this:

  (&(objectclass=user)(samaccountname=tridge))

the old code would first have loaded the very large index for the
objectclass=user attribute, and then loaded the single entry for
samaccountname=tridge. Now we load the samaccountname=tridge entry
first, notice that it gives us a single result, and stop, thereby
skipping the load of the objectclass=user index record completely.
2009-06-01 22:03:20 +10:00
Andrew Kroeger
05be1cc717 s4:mkproto: Add NET_API_STATUS return type.
The recently added LIBNETAPI torture tests use NET_API_STATUS as a return type
for some functions.  The torture/libnetapi/proto.h private header that was being
generated by mkproto.pl did not include a prototype for the test_netuseradd()
function, as it did not know how to handle the NET_API_STATUS return type.
2009-06-01 19:55:34 +10:00
Andrew Kroeger
a0edb50552 gitignore: Ignore additional auto-generated file 2009-06-01 19:13:28 +10:00
Andrew Tridgell
c0213308bb we don't need the unique checks in the samldb code now
These attributes now use the unique indexing flag
2009-06-01 16:37:28 +10:00
Andrew Tridgell
ce1045983f mark samAccountName, objectGUID and objectSID as unique indexed 2009-06-01 16:36:56 +10:00
Andrew Tridgell
5a39817212 added support for unique indexing in ldb
When a attribute is marked as LDB_ATTR_FLAG_UNIQUE_INDEX then attempts
to add a 2nd record that has the same attribute value for this
attribute as another record will fail.

This provides a much more efficient mechanism for ensuring that
attributes like objectGUID are unique
2009-06-01 16:36:21 +10:00
Andrew Tridgell
ae1c2415e2 fix uninitialised use of samctx 2009-06-01 13:42:51 +10:00
Andrew Tridgell
a6cc04a200 overallocate all records by 25%
This greatly reduces the fragmentation of databases where records
tend to grow slowly by a small amount each time. The case where this
is most seen is the ldb index records. Adding this overallocation
reduced the size of the resulting database by more than 20x when
running a test that adds 10k users.
2009-06-01 13:13:07 +10:00
Andrew Tridgell
a386173fa1 auto-repack in transactions that expand the tdb
The idea behind this is to recover from badly fragmented free
lists. Choosing the point where the file expands is fairly arbitrary,
but seems to work well.
2009-06-01 13:11:39 +10:00
Andrew Tridgell
7f16c29f10 when comp_num is zero, the case folded DN is always ""
This fixes a bug where we would look at an uninitialised
dn->linearized
2009-06-01 12:58:48 +10:00
Andrew Tridgell
ba95882155 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-06-01 10:39:30 +10:00
Volker Lendecke
14c1362034 Fix some nonempty blank lines 2009-05-31 12:16:34 +02:00
Volker Lendecke
3984b76498 Fix a C++ warning 2009-05-31 12:16:34 +02:00
Günther Deschner
241db90c31 nss_wrapper: try to fix the build of nss_wrapper on solaris.
Guenther
2009-05-30 23:08:12 +02:00
Jeremy Allison
ff736dfcad Fix bug #6421 - POSIX read-only open fails on read-only shares.
The change to smbd/trans2.c opens up
SETFILEINFO calls to POSIX_OPEN only. The change to first smbd/open.c closes 2
holes that would have been exposed by allowing POSIX_OPENS on readonly shares,
and their ability to set arbitrary flags permutations. The O_CREAT ->
O_CREAT|O_EXCL change removes an illegal combination (O_EXCL without O_CREAT)
that previously was being passed down to the open syscall.
Jeremy.
2009-05-30 13:28:03 -07:00
Volker Lendecke
68e3442922 Move a comment where it belongs 2009-05-30 18:27:13 +02:00
Simo Sorce
9fc13f6a2d Make it possible to change machine account sids
Fixes bug #6081
2009-05-30 11:25:20 -04:00
Simo Sorce
29ae49240c Remove trailing whitespaces 2009-05-30 09:48:38 -04:00
Jeremy Allison
34c2172ae8 Simplify the dropbox patch 2009-05-30 11:30:16 +02:00
Volker Lendecke
29d25d5ebf Move ads flags mapping to lib/ 2009-05-30 10:21:38 +02:00
Volker Lendecke
e9d1197b4e talloc_strdup "dir" in wb_context_init 2009-05-30 09:54:37 +02:00
Volker Lendecke
625851a50f Handle EINTR in async_sock.c 2009-05-30 09:51:02 +02:00
Günther Deschner
df167ee771 s3-selftest: Fix invalid /etc/group file used with nss_wrapper.
Found by torture test.

Guenther
2009-05-30 09:43:28 +02:00
Kai Blin
bb9103d9c4 libwbclient: Store the winbind socket dir to use in the wb_context 2009-05-30 09:17:37 +02:00
Kai Blin
29ee4f6a34 libwbclient: Silence a compiler warning 2009-05-30 09:17:37 +02:00
Kai Blin
57ea909b32 libwbclient: Add async call framework. 2009-05-30 09:17:37 +02:00
Volker Lendecke
590a3afc8a Re-Add the "dropbox" functionality with -wx rights on a directory 2009-05-29 16:57:47 -07:00
Günther Deschner
2be289c68d nss_wrapper: add test_nwrap_membership to testsuite.
Guenther
2009-05-30 01:46:22 +02:00
Günther Deschner
62d1cd6375 nss_wrapper: restructure parts of the testsuite.
Guenther
2009-05-30 01:45:58 +02:00
Günther Deschner
8db4917290 nss_wrapper: add support for getgrouplist.
Guenther
2009-05-30 00:06:00 +02:00
Jeremy Allison
684d3dddd6 Make cli_nt_delete_on_close() async.
Jeremy.
2009-05-29 14:58:34 -07:00
Michael Adam
2b68fb7cb4 s3:pdbedit: fix "format not a string literal and no format arguments" warnings
Michael
2009-05-29 23:52:23 +02:00
Michael Adam
e31d4ee936 s3:add prototype of map_nt_error_from_wbcErr() to proto.h
Michael
2009-05-29 23:28:39 +02:00
Michael Adam
c3b67446d0 libsmbclient: make SMBC_module_terminate() static.
Michael
2009-05-29 23:28:39 +02:00