1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

55106 Commits

Author SHA1 Message Date
Volker Lendecke
ea286fed7a s3:winbind: Add async wb_sid2uid 2009-08-05 03:21:21 -04:00
Volker Lendecke
9c6f4cd12a s3:winbind: Convert WINBINDD_LOOKUPNAME to the new API 2009-08-05 03:21:21 -04:00
Volker Lendecke
a541677077 s3:winbind: Add async wb_lookupname 2009-08-05 03:21:20 -04:00
Volker Lendecke
f6554611ab s3:winbind: Make wcache_name_to_sid visible externally 2009-08-05 03:21:20 -04:00
Volker Lendecke
74b45ba46c s3:winbind: Remove old version of WINBINDD_PING 2009-08-05 03:21:20 -04:00
Volker Lendecke
fa59f9720d s3:winbind: Convert WINBINDD_LOOKUPSID to the new API 2009-08-05 03:21:20 -04:00
Volker Lendecke
bb359c780a s3:winbind: Add async wb_lookupsid 2009-08-05 03:21:20 -04:00
Volker Lendecke
2d6589fb02 s3:winbind: Make wcache_sid_to_name externally visible 2009-08-05 03:21:19 -04:00
Volker Lendecke
6cf3db9149 s3:winbind: Add NDR-based parent-child communication to winbind 2009-08-05 03:21:19 -04:00
Andrew Tridgell
ddd13c6816 handle large directories in smb2_deltree() 2009-08-05 15:05:13 +10:00
Andrew Tridgell
d40537c92a fixed a uid_wrapper bug that caused a segv in the RAW-ACLS test 2009-08-05 13:32:04 +10:00
Andrew Bartlett
cd1d7f4be7 s4:heimdal: import lorikeet-heimdal-200908050050 (commit 8714779fa7376fd9f7761587639e68b48afc8c9c)
This also adds a new hdb-glue.c file, to cope with Heimdal's
uncondtional enabling of SQLITE.

(Very reasonable, but not required for Samba4's use).

Andrew Bartlett
2009-08-05 12:18:17 +10:00
Andrew Tridgell
8bba340e65 s4 now supports the large readx extension 2009-08-05 12:08:30 +10:00
Andrew Tridgell
15a6a93d35 fixed the sense of the pvfs_acl uwrap check 2009-08-05 12:08:30 +10:00
Jelmer Vernooij
46bd2271b2 pyldb: Fix reference counting on ldb_message_elements, add extra type
check.
2009-08-05 03:44:25 +02:00
Andrew Tridgell
88d206070d skip the readbraw tests if the server does not support it
This allows the RAW-READ test to pass against w2k8
2009-08-05 11:32:01 +10:00
Andrew Tridgell
58e5e1ea8d make the UID_WRAPPER skip checks at runtime
This fixes two issues pointed out by Andrew. It adds a runtime
uwrap_enabled() call that wraps the skips needed for uid emulation. It
also makes the skip in the directory_create_or_exist() function only
change the uid checking code, not the permissions code
2009-08-05 11:21:06 +10:00
Andrew Tridgell
fd43e0ee09 added a uid_wrapper library
This library intercepts seteuid and related calls, and simulates them
in a manner similar to the nss_wrapper and socket_wrapper
libraries. This allows us to enable the vfs_unixuid NTVFS module in
the build farm, which means we are more likely to catch errors in the
token manipulation.

The simulation is not complete, but it is enough for Samba4 for
now. The major areas of incompleteness are:

 - no emulation of setreuid, setresuid or saved uids. These would be
   needed for use in Samba3

 - no emulation of ruid changing. That would also be needed for Samba3

 - no attempt to emulate file ownership changing, so code that (for
   example) tests whether st.st_uid matches geteuid() needs special
   handling
2009-08-05 10:51:00 +10:00
Andrew Bartlett
3e3f64f05f s4:ldb initialise e->values[i].length before use in python bindings 2009-08-05 10:35:45 +10:00
Andrew Bartlett
43aa546ecc s4:dsdb Don't cast an ldb_val into a const char * for schema lookups
This removes a number of cases where we did a cast into a const char *
of an ldb_val.  While convention is to alway have an extra \0 at
data[length] in the ldb_val, this is not required, and does not occour
at least on build farm host 'svart'.

Andrew Bartlett
2009-08-05 08:56:06 +10:00
Gerald Carter
25a65d6046 idmap_adex: Fix usage of talloc_stackframe().
Pass an explicit TALLOC_CTX* to build_id_filter() and build_alias_filter()
rather than relying upon the talloc_stackframe() behavior that
allows a caller access to stackframe ctx for called functions.
2009-08-04 19:17:00 +02:00
Rusty Russell
38ff5906b3 s4: make install: prevent overwriting failure
We don't have to remove the eventual write privileges to enable the execute ones.
2009-08-04 19:02:42 +02:00
Günther Deschner
74454cc731 s3-spoolss: Fix Bug #6568: _spoolss_GetPrintProcessorDirectory() implementation.
We should always return a local path so that users are not forced to setup a
[prnproc$] share on the server. This restores pre-3.4.0 spoolss behaviour.

Guenther
2009-08-04 18:50:59 +02:00
Matthias Dieter Wallnöfer
0e87f07fc0 s4: Change my nested groups patch to don't include user's SID itself in the "groupSID"s structure 2009-08-04 17:21:39 +02:00
Andrew Bartlett
f050c500f1 s4:torture Make RPC-NETLOGON pass against ncaclrpc servers
The original patch didn't cope with a NULL target server name - we now key off that to decide it isn't worth checking against LDAP for this host.

I still can't get this to pass against Windows 2008, but mdw was
testing against Windows 2008R2.  at least 'make test' is happy, and
the rest should not be too hard...

Andrew Bartlett
2009-08-04 18:24:37 +10:00
Andrew Bartlett
dac8aabb55 Add const 2009-08-04 16:11:55 +10:00
Andrew Bartlett
d7b39a353a s4:ldif_handlers Allow a binary nTsecurityDescriptor when parsing LDIF
Also allow a SDDL security descriptor, using the domain SID attached
to the session (it will search for it during the LDIF parse if need
be).

Andrew Bartlett
2009-08-04 16:10:39 +10:00
Andrew Bartlett
9b02d23914 s4:netlogon Fix warnings and segfault in GetDomainInfo call
- Correctly use samdb_search_string to do a 'base' search
   (this needs a NULL, not a "" argument for the format string)

 - There is no need (and it caused a security hole) to use
   talloc_asprintf() with the only argument being the string to
   duplicate.

Andrew Bartlett
2009-08-04 16:10:39 +10:00
Andrew Tridgell
1937ab3668 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-08-04 16:02:23 +10:00
Andrew Tridgell
ff388611f4 fixed support for readx greater than 64k
This fixes bug 6547, where smbclient in S3 reads more than 64k at a
time with readx.
2009-08-04 16:01:11 +10:00
Andrew Bartlett
57d690b6f6 s4:torture rework LDAP sort test
This reworks the test to be part of the LDAP tests, to make better use
of the torture API and the ldb API (in particular around adding
controls), and a general cleanup.

This also adds the test to the 'make test' run.

Andrew Bartlett
2009-08-04 13:11:07 +10:00
Matthieu Patou
3eaef05506 s4:torture Add test for correct server-side sorting over LDAP 2009-08-04 11:54:40 +10:00
Andrew Bartlett
8f110d3051 Use smbclient binary for the test file in smbclient test
In the vein hope that a larger file might show problems better than a
small file.

Andrew Bartlett
2009-08-04 11:40:31 +10:00
Ricardo Jorge
3641978dfa param/pyparam: Cope with string list parameters being empty.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-08-04 00:18:43 +02:00
Ricardo Jorge
1174177c8f python/loadparm: Get shares listing working.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-08-04 00:18:42 +02:00
Jelmer Vernooij
15d73317ea pyldb: Properly keep copies of Python string contents, rather than
relying on reference leaks :-)
2009-08-04 00:18:42 +02:00
Günther Deschner
7048165e7a s4-ldap_server: fix generated error string in map_ldb_error().
Guenther
2009-08-04 00:16:37 +02:00
Günther Deschner
75030ff2b1 s3-spoolss: fix crash bug in spoolss_addprinterex_level_2.
Guenther
2009-08-04 00:16:37 +02:00
Volker Lendecke
7180ae0b8e Add some const to winbind_userinfo 2009-08-03 22:48:45 +02:00
Volker Lendecke
3d15d044a9 Fix a typo 2009-08-03 21:42:55 +02:00
Volker Lendecke
e4d276f737 Fix some nonempty blank lines 2009-08-03 21:27:44 +02:00
Jelmer Vernooij
bb944dcf64 pyldb: Raise proper exception when attempting to assign a string to a dn
attribute.
2009-08-03 18:15:16 +02:00
Günther Deschner
20225d83dd s3-pdb_ldap: Make ldapsam_alias_memberships behave like the tdbsam equivalent.
This lets samr_GetAliasMembership return with NT_STATUS_OK when called with 0
sids (just what w2k3 does).

Guenther
2009-08-03 16:32:15 +02:00
Matthias Dieter Wallnöfer
64b4d02032 s4: Change constant to comply with the merged build 2009-08-03 14:23:23 +02:00
Karolin Seeger
7ee7ec3fdb s3/docs: Fix typos.
Thanks to OPC oota <t-oota@dh.jp.nec.com> for reporting!

Karolin
2009-08-03 10:20:39 +02:00
Matthias Dieter Wallnöfer
3fae13ba80 s3/s4: Add new autogenerated files from "make idl_full" 2009-08-03 09:51:44 +02:00
Matthias Dieter Wallnöfer
720b7ea0ee s4: Torture test for enhancements in "netr_LogonGetDomainInformations" call
This corrects and enhances the torture test of the mentioned call.
2009-08-03 09:46:30 +02:00
Matthias Dieter Wallnöfer
c688d37497 s4: Enhancements in the "netr_LogonGetDomainInformations" call
This addresses bug #4888 and #6596 in SAMBA 4 Bugzilla
- It implements the call in the complete form as specified in the MSPP/WSPP docs
  and on the discussion on the "cifs-protocol" list
- Therefore client informations (OS name, OS version, "servicePrincipalName"...)
  are now saved in the AD each time the client invokes the call
2009-08-03 09:46:30 +02:00
Matthias Dieter Wallnöfer
721402b8de netlogon.idl: Prework to enhance the "netr_LogonGetDomainInformation" call correctly
This enhances the "netlogon.idl" file to allow enhancements on the mentioned call.
Therefore this is also the base for fixing up bug #4888.
2009-08-03 09:46:30 +02:00
Matthias Dieter Wallnöfer
e14b2ed8df netlogon.idl: Removes the form "str[]" for string declarations
In this file two different forms are used to explain the same datatype ("str[]" and "*str").
I didn't find this very nice and unified the occurrences to always use "*str".

This patch is of cosmetic nature.
2009-08-03 09:46:30 +02:00