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

460 Commits

Author SHA1 Message Date
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Herb Lewis
4c04059f7d r23732: removed reference to non-existent structure 2007-10-10 12:23:50 -05:00
Günther Deschner
7ca002f4cc r23646: Generalize our internal keytab handling to support a broader range of default
keytabnames (like "ANY:FILE:/etc/krb5.keytab,krb4:/etc/srvtab"). This also
fixes keytab support with Heimdal (which supports the WRFILE pragma as well
now).

Guenther
2007-10-10 12:23:40 -05:00
Günther Deschner
aa3511a5b5 r23582: Fix event based krb5 ticket refreshing in winbindd.
We were incorrectly using the renew_till timestamp instead of the renewed
ticket's endtime to calculate the next refreshing date.

Guenther
2007-10-10 12:23:32 -05:00
Michael Adam
24b0cbcb37 r23509: This activates the global options from the registry in loadparm.
The global options are stored as values in the subkey "global"
of the SMBCONF registry key.

The activation is accomplished in smb.conf though a new special
semantic of the "include" parameter: "include = registry" triggers
the processing of the registry global options exactly at the
position of the include statement. Options read from the registry
take the same precedence as parameters loaded from a file via
include. Need to reload the registry globals is detected by
watching the tdb sequence number.

Registry shares are automatically activated when the registry
globals are processed.

So a "registry only" configuration can be realized by an
smb.conf that looks as follows:

================================
[global]
include = registry
================================

The global options and registry shares can be conveniently
edited with the "net conf" utility.

Caveat:

A possible pitfall consists in using "include = registry"
together with the "lock directory" directive in the registry.
This problem will be addressed in the next time.

Note on the code:

Processing of the registry options is accomplished by a function
process_registry_globals() in loadparm.c The current version is
only an interim solution: It is handcoded instead of using the
infrastructure of reg_api.c. The reason for this is that using
reg_api still has too large linker dependencies, bloating virtually
all targets by PASSDB_OBJ, SMBLDAP_OBJ, GROUPDB_OBJ and LDB stuff.
A version of process_registry_globals that uses reg_api is
included but commented out. The goal is to eventually refactor
and restructure the registry code so that one can use the reg_api
to access only the registry tdb and not link all the dynamic
backends with all their linking implications.
2007-10-10 12:23:23 -05:00
Volker Lendecke
15553d6327 r23410: Merge the core of the cluster code.
I'm 100% certain I've forgotten to merge something, but the main code
should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and
messages_ctdbd.c.

There should be no changes to the non-cluster case, it does survive make
test on my laptop.

It survives some very basic tests with ctdbd enables, I did not do the
full test suite for clusters yet.

Phew...

Volker
2007-10-10 12:23:14 -05:00
Stefan Metzmacher
bd1b28dd3e r23328: don't typedef ber_tag_t when it's already done by openldap
headers on HP-UX (lber_types.h defines _LBER_TYPES_H).

metze
2007-10-10 12:23:06 -05:00
Stefan Metzmacher
5e9b84326b r23307: move readahead stuff out of libreplace and make it samba3 specific
as we can't replace this function in libreplace and we do
the some stuff for other function in the same way.

metze
2007-10-10 12:23:05 -05:00
Gerald Carter
ebcae48ec1 r23274: merge CloseEventlog() pidl conversion from 3.0.26 && fix a few init call renames for svcctl in the previous commit 2007-10-10 12:23:02 -05:00
Gerald Carter
0b1bc3521f r23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26 2007-10-10 12:23:01 -05:00
Gerald Carter
22a3ea40ac r23251: whoops! Fix compile error 2007-10-10 12:22:59 -05:00
Volker Lendecke
eaefd00563 r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'm
doing this because for the clustering the marshalling is needed in more
than one place, so I wanted a decent routine to marshall a message_rec
struct which was not there before.

Tridge, this seems about the same speed as it used to be before, the
librpc/ndr overhead in my tests was under the noise.

Volker
2007-10-10 12:22:17 -05:00
Günther Deschner
b376a39fbf r22796: Add security descriptor to GROUP_POLICY_OBJECT structure (in preparation of
adding GPO security filtering for libgpo).

Guenther
2007-10-10 12:21:57 -05:00
Volker Lendecke
e9d7484ca2 r22775: For the cluster code I've developed a wrapper around tdb to put different
database backends in place dynamically.

The main abstractions are db_context and db_record, it should be mainly
self-describing, see include/dbwrap.h.  You open the db just as you would open
a tdb, this time with db_open(). If you want to fetch a record, just do the
db->fetch() call, if you want to do operations on it, you need to get it with
fetch_locked().

I added dbwrap_file.c (not heavily tested lately) as an example for what can
be done with that abstraction, uses a file per key. So if anybody is willing
to shape that up, we might have a chance on reiserfs again.... :-)

This abstraction works fine for brlock.tdb, locking.tdb, connections.tdb and
sessionid.tdb. It should work fine for the others as well, I just did not yet
get around to convert them.

If nobody loudly screams NO, then I will import the code that uses this soon.

Volker
2007-10-10 12:21:56 -05:00
Günther Deschner
9ec76c5427 r22479: Add "net ads keytab list".
Guenther
2007-10-10 12:19:37 -05:00
Günther Deschner
664db1cff6 r22468: Fixing implicit declaration of krb5_set_default_tgs_ktypes (which is hidden by
KRB5_PRIVATE in MIT and doesn't exist on Heimdal).

Guenther
2007-10-10 12:19:37 -05:00
Stefan Metzmacher
1ca12b1c9e r22315: move tdbback.c content into tdbbackup.c
and make the functions static.

also use libreplace headers in tdbbackup.c

metze
2007-10-10 12:19:26 -05:00
Jeremy Allison
4de297112b r22108: Fix from <don.mccall@hp.com> to try and fix the HPUX builds.
Jeremy.
2007-10-10 12:19:13 -05:00
Jeremy Allison
b70af25e85 r22049: HPUX build fixes from <don.mccall@hp.com>.
Jeremy.
2007-10-10 12:19:05 -05:00
Jeremy Allison
7d30737c8d r22003: Fix from Jiri.Sasek@Sun.COM to wrap our krb5_locate_kdc
call as smb_krb5_locate_kdc to prevent incorrect linking
and crashes on Solaris.
Jeremy.
2007-10-10 12:18:59 -05:00
Jeremy Allison
ae8f3649f7 r21991: I hate Steve French :-). Add support for encryption
contexts....
Jeremy.
2007-10-10 12:18:58 -05:00
Jeremy Allison
fbc569b530 r21969: Start working on the gss-side of the server negotiation.
Jeremy.
2007-10-10 12:18:54 -05:00
Jeremy Allison
a226645353 r21917: Start to do the gss versions of sign+seal.
Jeremy.
2007-10-10 12:18:48 -05:00
Jeremy Allison
638b03242d r21883: Try and fix the build by removing the prototypes for
functions that take a gss context handle in includes.h
Jeremy.
2007-10-10 12:18:43 -05:00
Jeremy Allison
c426340fc7 r21845: Refactor the sessionsetupX code a little to allow us
to return a NT_STATUS_TIME_DIFFERENCE_AT_DC error to
a client when there's clock skew. Will help people
debug this. Prepare us for being able to return the
correct sessionsetupX "NT_STATUS_MORE_PROCESSING_REQUIRED"
error with associated krb5 clock skew error to allow
clients to re-sync time with us when we're eventually
able to be a KDC.
Jeremy.
2007-10-10 12:18:37 -05:00
James Peach
c29c69d2df r21778: Wrap calls to krb5_get_init_creds_opt_free to handle the different
calling convention in the latest MIT changes.  Apparantly Heimdal
is also changing to this calling convention.
2007-10-10 12:18:32 -05:00
Günther Deschner
7e1a84b722 r21240: Fix longstanding Bug #4009.
For the winbind cached ADS LDAP connection handling
(ads_cached_connection()) we were (incorrectly) assuming that the
service ticket lifetime equaled the tgt lifetime. For setups where the
service ticket just lives 10 minutes, we were leaving hundreds of LDAP
connections in CLOSE_WAIT state, until we fail to service entirely with
"Too many open files".

Also sequence_number() in winbindd_ads.c needs to delete the cached LDAP
connection after the ads_do_search_retry() has failed to submit the
search request (although the bind succeeded (returning an expired
service ticket that we cannot delete from the memory cred cache - this
will get fixed later)).

Guenther
2007-10-10 12:17:50 -05:00
Günther Deschner
ea38e1f836 r21110: Fix kinit with Heimdal (Bug #4226).
Guenther
2007-10-10 12:17:38 -05:00
Volker Lendecke
a2ea54c234 r21074: Preparation for the import of samba4 notify: Add the file notify.idl and the
resulting marshalling/unmarshalling routines in gen_ndr/

Volker
2007-10-10 12:17:33 -05:00
Gerald Carter
2ba353848b r21001: * Use a simple '#define LDAPMessage void' to fix the build
problems in the nss_info interface when HAVE_LDAP is undefined.
* Revert previous ifdef HAVE_ADS brakets
* Remove an unused init function wrapper.
2007-10-10 12:17:25 -05:00
Andrew Bartlett
91fdbd4cf5 r20996: Build fix from Kai Blin 2007-10-10 12:17:24 -05:00
Gerald Carter
7011a1b5ab r20992: another attempt at fixing the build breakage 2007-10-10 12:17:24 -05:00
Gerald Carter
aaec0115e2 r20986: Commit the prototype of the nss_info plugin interface.
This allows a provider to supply the homedirectory, etc...
attributes for a user without requiring support in core
winbindd code.  The idmap_ad.c module has been modified
to provide the idmap 'ad' library as well as the rfc2307 and sfu
"winbind nss info" support.

The SID/id mapping is working in idmap_ad but the nss_info
still has a few quirks that I'm in the process of resolving.
2007-10-10 12:17:23 -05:00
Volker Lendecke
d10dd47fb8 r20501: Check in config.h fix from Michael Adam <ma@sernet.de> 2007-10-10 12:16:53 -05:00
Stefan Metzmacher
eed50e1047 r20386: remove unneeded dlopen related configure checks and includes
this is done by libreplace...

this hopefully fixes the build on HPUX 11.00

metze
2007-10-10 12:16:45 -05:00
Gerald Carter
c142b629c8 r19808: remove old smbwrapper references 2007-10-10 12:15:57 -05:00
Gerald Carter
e37132f219 r19758: remove the LDAP_SCOPE_ONELEVEL define (not needed after svnup) 2007-10-10 12:15:53 -05:00
Gerald Carter
3eddae2f20 r19754: * When using a krb5 session setup, we don't fill in the server_name
string the clis_state struct.  So call saf_store() after we
  have the short domain name in the lsa_query_inof_policy code.

* Remove unused server string in saf_delete()
2007-10-10 12:15:53 -05:00
Andrew Tridgell
1ad563286f r19429: moved tdb/common/tdbutil.c into lib/util_tdb.c
see discussion on samba-technical
2007-10-10 12:15:35 -05:00
James Peach
9b8e179fcc r19270: Stop depending on internal MIT symbols. These are private on MacOS
x, so we can't get at them even if we wanted to.

Kerberos experts, please take a look to make sure I've done the
right thing!
2007-10-10 12:15:27 -05:00
Stefan Metzmacher
a3a082c42c r19240: move the NO_CONFIG_H check to libreplace
this fixes the quota detection configure and maybe more
configure tests

metze
2007-10-10 12:15:24 -05:00
Stefan Metzmacher
5d16aa61c6 r19026: we don't need this twice
metze
2007-10-10 12:15:03 -05:00
Gerald Carter
4f79d8c83d r18963: * Move parts of registry headers that were still in
use to reg_objects.h
* Remove unused rpc headers
2007-10-10 12:14:51 -05:00
Stefan Metzmacher
b852cf46c2 r18950: I can't see where stropts.h and poll.h are needed
(I just removed the only reference to poll() in my last commit)

they were added in this commit, without make usage of them.

http://cvs.samba.org/cgi-bin/cvsweb/samba/source/configure.in.diff?r1=1.21&r2=1.22&f=h
http://cvs.samba.org/cgi-bin/cvsweb/samba/source/include/includes.h.diff?r1=1.105&r2=1.106&f=h

metze
2007-10-10 12:14:49 -05:00
Günther Deschner
9da91022f9 r18818: Forgot header file.
Guenther
2007-10-10 12:01:03 -05:00
Stefan Metzmacher
d49ffbc19b r18810: use a copy of samba4's talloc under lib/talloc/
to make mergeing easier.

metze
2007-10-10 12:01:02 -05:00
Jelmer Vernooij
ef10672399 r18802: Use the pidl-generated code for the srvsvc interface, both client and server code.
This has had some basic testing. I'll do more during the next couple of days and hopefully also
make RPC-SRVSVC from Samba4 pass against it.
2007-10-10 12:00:59 -05:00
Stefan Metzmacher
454d9590de r18784: hopefully fix the BOOL bug on AIX
metze
2007-10-10 12:00:57 -05:00
Günther Deschner
7db6ce295a r18703: Fix the annoying effect that happens when nscd is running:
We usually do not get the results from user/group script modifications
immediately. A lot of users do add nscd restart/refresh commands into
their scripts to workaround that while we could flush the nscd caches
directly using libnscd.

Guenther
2007-10-10 12:00:49 -05:00