1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

54999 Commits

Author SHA1 Message Date
Jelmer Vernooij
27087e6a87 VFS examples: Update copy of config.{guess,sub}. 2009-07-18 20:04:11 +02:00
Jelmer Vernooij
7883897b8d python: Set right ldb modules directory when using system ldb. 2009-07-18 18:39:20 +02:00
Jelmer Vernooij
d884fcf9a0 Actually fill in ldb modules directory. 2009-07-18 18:28:57 +02:00
Jelmer Vernooij
d356669492 Remove pyldb_util and simply duplicate the 5-line function it contains,
rather than creating a separate shared library for it.
2009-07-18 16:11:21 +02:00
Jelmer Vernooij
8c5aff207d ldb: Display SHLD_FLAGS when building. 2009-07-18 10:37:59 +02:00
Jeremy Allison
0259a303f4 Fix Coverity CIDs 887, 888. Don't pass NULL's to functions
that deref them.
Jeremy.
2009-07-17 21:50:33 -07:00
Jeremy Allison
0bd13fda76 Fix Coverity CID 928. Removed check as this can never be null.
Jeremy.
2009-07-17 21:40:23 -07:00
Jeremy Allison
3036a9c7c1 Fix Coverity CID 929. Potential NULL deref after code refactoring.
Jeremy.
2009-07-17 21:36:55 -07:00
Jeremy Allison
d654782806 Fix coverity CID 930. Pointer check can never be null here.
Jeremy
2009-07-17 21:29:28 -07:00
Jeremy Allison
7254898bc7 Fix coverity CID 931. This check is redundent as smb_fname can
never be null in this function.
Jeremy.
2009-07-17 21:26:16 -07:00
Jeremy Allison
eba2eb45e2 Fix a typo reading uninitialized memory. Caught by valgrind.
Jeremy.
2009-07-17 18:05:10 -07:00
Jeremy Allison
55b4231c77 Move the initialization of smbd_server_conn from smbd/process,
after the accept and fork, to smbd_init_globals(), so it's
done immediately on server startup. This is needed as some
messages are sent to all active smbd processes (including
the master listening daemon). If it gets a message that
forces it to scan it's current connections (ie. conn_find())
then it discovers that sconn->smb1.tcons.Connections dereferences
null (as sconn == NULL in the parent) and crashes. Yes,
I could fix all cases where sconn is used and explicitly
check for NULL but this fix is easier. It means that
the smbd_event_context() is initialized in the master
daemon and then re-initialized after fork, but that
should be being done correctly in every fork call anyway.
Without this change the previous fix 6a9e0039100b57f9626e87defec6720c476b9789
still panics in the reproducible test case for bug
6564, as this is one case where such a message
(MSG_SMB_CONF_UPDATED) is sent to the parent. Metze
please check. This change passes valgrind.
Jeremy.
2009-07-17 17:57:48 -07:00
Jeremy Allison
6a9e003910 Fix bug #6564 - SetPrinter fails (panics) as non root.
Missing become_root()/unbecome_root() around reload_services.
Jeremy.
2009-07-17 17:36:26 -07:00
Volker Lendecke
33251da861 3.4 is released... 2009-07-17 22:40:24 +02:00
Günther Deschner
3b44c0c21e s4-spoolss: fix the build after OsVersion changes.
Guenther
2009-07-17 17:20:30 +02:00
Günther Deschner
1a7a8d4330 spoolss: fill in some unknowns in spoolss_OSVersion and spoolss_OSVersionEx.
Guenther
2009-07-17 17:20:30 +02:00
Bo Yang
f394fa7766 s3: add failure check.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-18 14:12:26 +08:00
Günther Deschner
ffbcf3b491 s3-rpcclient: add createprinteric command.
Guenther
2009-07-17 15:40:18 +02:00
Günther Deschner
11bea731ae spoolss: fill in spoolss_Create/DeletePrinterIC + rerun make samba3-idl.
Guenther
2009-07-17 15:40:06 +02:00
Günther Deschner
3e661d4c8e s3-lsa: let _lsa_Delete return NT_STATUS_NOT_SUPPORTED as w2k3 does.
Guenther
2009-07-17 13:55:29 +02:00
Günther Deschner
2a26b2ac87 s3-lsa: Fix access_mask calculation for new handle in _lsa_CreateAccount().
Guenther
2009-07-17 13:50:34 +02:00
Günther Deschner
3eea254e5b s3-lsa: add (not yet activate) level specific access checks for _lsa_QueryInfoPolicy.
Guenther
2009-07-17 13:50:34 +02:00
Günther Deschner
864e809752 s3-lsa: also implement level 13 in lsa_QueryInfoPolicy.
Guenther
2009-07-17 13:50:34 +02:00
Günther Deschner
d1903cb7f2 s3-lsa: Fix policy handle memleak and handle type check in _lsa_DeleteObject().
Guenther
2009-07-17 13:50:34 +02:00
Günther Deschner
7e9f8f0f95 s3-rpcclient: add LSA storeprivatedata command.
Guenther
2009-07-17 13:50:34 +02:00
Günther Deschner
27c39a2804 s3-rpcclient: add LSA retrieveprivatedata command.
Guenther
2009-07-17 13:50:34 +02:00
Günther Deschner
7194fc6a69 s3-rpcclient: add LSA setsecret command.
Guenther
2009-07-17 13:50:33 +02:00
Günther Deschner
1a862349e1 s3-rpcclient: add LSA querysecret command.
Guenther
2009-07-17 13:50:33 +02:00
Günther Deschner
f848f4f4d3 s3-rpcclient: add LSA deletesecret command.
Guenther
2009-07-17 13:50:33 +02:00
Günther Deschner
dee787cb77 s3-rpcclient: add LSA createsecret command.
Guenther
2009-07-17 13:50:33 +02:00
Günther Deschner
9ac5f5c8ce lsa: fill in lsa_StorePrivateData and lsa_RetrievePrivateData and rerun make samba3-idl.
Guenther
2009-07-17 13:50:33 +02:00
Bo Yang
b180fe34a7 s3: compile warning and upn handling
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-18 10:47:45 +08:00
Bo Yang
e7daa0d704 s3: don't do this, upper callbacks will check it
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-18 08:18:29 +08:00
Bo Yang
20f40d1c50 s3: Fix crsh in net usershare list
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-18 08:18:29 +08:00
Jeremy Allison
5f295eb6f5 More conversions of NULL -> talloc_autofree_context()
so we at least know when we're using a long-lived context.
Jeremy.
2009-07-16 18:28:58 -07:00
Jeremy Allison
d4a87ee966 Replace more long-lived contexts with talloc_autofree_context().
Jeremy.
2009-07-16 18:14:56 -07:00
Jeremy Allison
d5c20c072b Replace short-lived NULL talloc contexts with talloc_tos().
Jeremy.
2009-07-16 18:13:46 -07:00
Jeremy Allison
9f0bdd4e17 Remove an unused talloc context.
Jeremy.
2009-07-16 18:12:17 -07:00
Andrew Bartlett
f6bed79ec6 Revert "s4:heimdal_build: predefine GSSAPI_DEPRECATED depending on the compiler version"
This is now handled correctly in the newly imported Heimdal

This reverts commit 4a754d029b0eb229b23980aa4a80dae2b485a302.
2009-07-17 08:39:51 +10:00
Andrew Bartlett
6cb81f7b37 s4:heimdal: import lorikeet-heimdal-200907162216 (commit d09910d6803aad96b52ee626327ee55b14ea0de8)
This includes in particular changes to the KDC to resolve bug 6272,
originally by Matthieu Patou <mat+Informatique.Samba@matws.net>.  We
need to sort the AuthorizationData elements to put the PAC first, or
else WinXP breaks when browsed from Win2k8.

Andrew Bartlett
2009-07-17 08:32:01 +10:00
Andrew Bartlett
19bc4ce95c s4:kdc Rework KDC to pull in less attributes for krbtgt lookups
Each attribute we request from LDB comes with a small cost, so don't
lookup any more than we must for the (very) frequent krbtgt lookup
case.  Similarly, we don't need to build a PAC for a server (as a
target), so don't ask for the PAC attributes here either.

Andrew Bartlett
2009-07-17 08:26:49 +10:00
Andrew Bartlett
d7b31ff853 s4:kdc rename functions from LDB_ to hdb_samba4
The LDB_ prefix is misleading, and stomps on the LDB namespace.  This
is a Samba4 hdb module, and not something generic.

Andrew Bartlett
2009-07-17 08:26:48 +10:00
Günther Deschner
2e77debc99 Revert "fix LSA-PRIVILEGES"
This reverts commit 0d9fdbceedddb08dbea8ed84e06a218d3ec562f4.
2009-07-17 00:13:54 +02:00
Günther Deschner
106d43a1dd Revert "fix LSA-TRUSTED-DOMAINS"
This reverts commit 3c9b26276083002124674678ac757e859fb6b20e.
2009-07-17 00:13:46 +02:00
Günther Deschner
8d68d04258 s4-smbtorture: use secinfo flags instead of numbers in lsa test.
Guenther
2009-07-17 00:13:40 +02:00
Günther Deschner
4faef0da76 s3-lsa: Fix pointless check for sec_info flags in _lsa_QuerySecurity().
Guenther
2009-07-17 00:13:29 +02:00
Günther Deschner
35e45fb841 s3-lsa: implement _lsa_LookupPrivName().
Guenther
2009-07-17 00:12:56 +02:00
Günther Deschner
3b899af422 s3-lsa: implement _lsa_EnumAccountsWithUserRight().
Guenther
2009-07-17 00:11:14 +02:00
Jeremy Allison
74c405db40 Tidyup prompted by #6554 - Wrong deallocation in sam_account_ok.
Jeremy.
2009-07-16 09:54:14 -07:00
Stefan Metzmacher
4a754d029b s4:heimdal_build: predefine GSSAPI_DEPRECATED depending on the compiler version
Otherwise heimdal/lib/gssapi/gssapi/gssapi.h will just define it to
__attribute__ ((deprecated)) which is not supported by all compilers
we care about.

This should fix the build on Tru64

metze
2009-07-16 12:24:47 +02:00