abartlet/samba.git/.git
13 years agos4:s3compat Remove even more Samba3 modules s3compat
Andrew Bartlett [Thu, 3 Jun 2010 11:21:42 +0000 (21:21 +1000)]
s4:s3compat Remove even more Samba3 modules

This ensures we compile no auth modules into the s3compat tree.  The
config.h changes will need to be redone in a proper waf build script
at some point.

Andrew Bartlett

13 years agos4:s3compat Fix talloc tree returned from ads_verify_ticket replacement
Andrew Bartlett [Thu, 3 Jun 2010 11:20:28 +0000 (21:20 +1000)]
s4:s3compat Fix talloc tree returned from ads_verify_ticket replacement

This ensures that we don't keep gensec around, but we do return the
outputs on valid talloc contexts.

Andrew Bartlett

13 years agos4:s3compat Redirect all, including guest, authentication to Samba4
Andrew Bartlett [Thu, 3 Jun 2010 11:18:45 +0000 (21:18 +1000)]
s4:s3compat Redirect all, including guest, authentication to Samba4

This creates a challenge around "NT AUTHORITY\ANONYMOUS" at the
moment, but is the only correct thing to do, as we already do much the
same thing with NTLMSSP.

Andrew Barltett

13 years agos4:s3compat Improve debug messages in auth_ntlmssp replacement
Andrew Bartlett [Thu, 3 Jun 2010 11:17:45 +0000 (21:17 +1000)]
s4:s3compat Improve debug messages in auth_ntlmssp replacement

13 years agos3:smbd Give the kerberos session key a parent
Andrew Bartlett [Thu, 3 Jun 2010 11:15:33 +0000 (21:15 +1000)]
s3:smbd Give the kerberos session key a parent

I can't see what would free this, so this should prevent a memory leak.

Andrew Bartlett

13 years agos3:named pipe proxy Improve error messages when named pipes fail to forward
Andrew Bartlett [Thu, 3 Jun 2010 11:05:57 +0000 (21:05 +1000)]
s3:named pipe proxy Improve error messages when named pipes fail to forward

I hope this helps the next person who needs to debug this.

Andrew Bartlett

13 years agos3:passdb s3compat Always ask the passdb module, even about the guest account
Andrew Bartlett [Thu, 3 Jun 2010 11:03:52 +0000 (21:03 +1000)]
s3:passdb s3compat Always ask the passdb module, even about the guest account

The pdb_samba4 has a much better idea of the correct return values for
the guest account than the 'make it up from /etc/passwd' replacement
function.

Andrew Bartlett

13 years agos3:auth Give more clues in message about conflicting SIDs
Andrew Bartlett [Thu, 3 Jun 2010 11:00:54 +0000 (21:00 +1000)]
s3:auth Give more clues in message about conflicting SIDs

This should never happen, but particularly with the guest account, it
seems to happen in s3compat.  This should help the next person trying
to work it out.

Andrew Bartlett

13 years agonamed_pipe_auth Always lower case the incoming pipe name
Andrew Bartlett [Thu, 3 Jun 2010 10:59:25 +0000 (20:59 +1000)]
named_pipe_auth Always lower case the incoming pipe name

Windows connects to an upper case NETLOGON pipe, and we can't find the
socket to connect to until we lower case the name.

Andrew Bartlett

13 years agos4:s3compat Compile much less of Samba3
Andrew Bartlett [Wed, 2 Jun 2010 13:17:36 +0000 (23:17 +1000)]
s4:s3compat Compile much less of Samba3

We don't need the passdb, idmap or most of the RPC server modules.

We keep the SAMR server for now, as there are direct C calls into it.

Andrew Bartlett

13 years agos3:s3compat Override default pipe forwarding for s3compat
Andrew Bartlett [Thu, 3 Jun 2010 12:32:49 +0000 (22:32 +1000)]
s3:s3compat Override default pipe forwarding for s3compat

This allows s3compat to be run without smb.conf options being set.

13 years agos4:s3compat Hook the named pipe proxy configuration to s3compat
Andrew Bartlett [Wed, 2 Jun 2010 13:14:59 +0000 (23:14 +1000)]
s4:s3compat Hook the named pipe proxy configuration to s3compat

This ensures that no configuration options need to be set to proxy the
'default' set of pipes.  This can then be modified in the code,
without updates to user smb.conf files, or the need to get the socket
dir correct.

Andrew Bartlett

13 years agos4:s3compat Match s3compat to new auth_ntlmssp API
Andrew Bartlett [Wed, 2 Jun 2010 13:11:01 +0000 (23:11 +1000)]
s4:s3compat Match s3compat to new auth_ntlmssp API

We now return NTSTATUS from auth_ntlmssp_server_info() and correctly
return the right session key for Kerberos.

Andrew Bartlett

13 years agos3:auth add hooks to indicate if signing or sealing is desired with NTLMSSP
Andrew Bartlett [Wed, 2 Jun 2010 12:52:56 +0000 (22:52 +1000)]
s3:auth add hooks to indicate if signing or sealing is desired with NTLMSSP

This allows the right hooks to be called in GENSEC when s3compat
implements the auth_ntlmssp interface.  Otherwise, we can't do the
signing or sealing as we have not negoitated it's use.

Andrew Bartlett

13 years agos3:auth Change auth_ntlmssp_server_info API to return NTSTATUS
Andrew Bartlett [Wed, 2 Jun 2010 12:35:53 +0000 (22:35 +1000)]
s3:auth Change auth_ntlmssp_server_info API to return NTSTATUS

It's nicer to have an NTSTATUS return, and in s3compat there may be a
reason other than 'no memory' why this can fail.

Andrew Bartlett

13 years agos3:samr Provide a better link API for local password changes.
Andrew Bartlett [Wed, 2 Jun 2010 06:11:28 +0000 (16:11 +1000)]
s3:samr Provide a better link API for local password changes.

The previous code would encrypt, then decrypt the password in
winbindd.  This moves that to the srv_samr_chgpasswd.c file, and
allows for a future cleanup.

Andrew Bartlett

13 years agos3:winbind Fill in reject_reason from pass_oem_change() for local pw change.
Andrew Bartlett [Wed, 2 Jun 2010 06:07:27 +0000 (16:07 +1000)]
s3:winbind Fill in reject_reason from pass_oem_change() for local pw change.

When we changed the password against the local DB, this was not filled
in, but it is filled in for a remote password change over SAMR.

Andrew Bartlett

13 years agos3:smbd Fix segfault if register_existing_vuid() fails
Andrew Bartlett [Tue, 1 Jun 2010 09:19:01 +0000 (19:19 +1000)]
s3:smbd Fix segfault if register_existing_vuid() fails

The register_existing_vuid() call will handle both the ntlmssp_end and
vuid invalidation internally, so we don't want to do it again.

Andrew Bartlett

13 years agos4:s3compat Add a wrapper for auth_ntlmssp the calls directly to GENSEC
Andrew Bartlett [Tue, 1 Jun 2010 09:13:17 +0000 (19:13 +1000)]
s4:s3compat Add a wrapper for auth_ntlmssp the calls directly to GENSEC

This allows us to use the same stack for all server-side NTLMSSP in
s3compat.

Andrew Bartlett

13 years agos4:gensec Put the "NTLM" string for NTLMSSP's SASL name in a header
Andrew Bartlett [Tue, 1 Jun 2010 09:12:29 +0000 (19:12 +1000)]
s4:gensec Put the "NTLM" string for NTLMSSP's SASL name in a header

13 years agos4:s3compat Fix pdb_samba after ndr_security.h became an optional header
Andrew Bartlett [Tue, 1 Jun 2010 06:25:23 +0000 (16:25 +1000)]
s4:s3compat Fix pdb_samba after ndr_security.h became an optional header

13 years agos4:s3compat Cope with move of chgpasswd to samr server
Andrew Bartlett [Sat, 29 May 2010 00:12:23 +0000 (10:12 +1000)]
s4:s3compat Cope with move of chgpasswd to samr server

13 years agos4:s3compat Merge waf build changes for registry from s3 waf build.
Andrew Bartlett [Tue, 25 May 2010 23:03:11 +0000 (09:03 +1000)]
s4:s3compat Merge waf build changes for registry from s3 waf build.

(original patch by Michael Adam <obnox@samba.org>)

13 years agos4:s3compat cope with move to common ntlmssp_sign.c
Andrew Bartlett [Sat, 29 May 2010 04:25:23 +0000 (14:25 +1000)]
s4:s3compat cope with move to common ntlmssp_sign.c

13 years agos4:s3compat Fix pdb_samba4 after changes to dsdb_enum_group_mem()
Andrew Bartlett [Mon, 24 May 2010 23:22:16 +0000 (09:22 +1000)]
s4:s3compat Fix pdb_samba4 after changes to dsdb_enum_group_mem()

The prototype fordsdb_enum_group_mem() was changed to use unsigned
int, so we need to follow up here.

Adnrew Bartlett

13 years agos4:s3compat Add idmap_samba4 module that redirects to the Samba4 idmap
Andrew Bartlett [Mon, 24 May 2010 05:01:44 +0000 (15:01 +1000)]
s4:s3compat Add idmap_samba4 module that redirects to the Samba4 idmap

This allows an existing idmap.ldb to be used with s3compat, and avoids
the need to set idmap uid and idmap gid in the smb.conf.

Andrew Bartlett

13 years agos3:s3compat Allow replacement of lp_idmap_backend() and lp_idmap_alloc_backend
Andrew Bartlett [Mon, 24 May 2010 05:00:20 +0000 (15:00 +1000)]
s3:s3compat Allow replacement of lp_idmap_backend() and lp_idmap_alloc_backend

13 years agos4:s3compat Add struct declarations to avoid warnings in s3compat_wrapper.h
Andrew Bartlett [Mon, 24 May 2010 00:12:22 +0000 (10:12 +1000)]
s4:s3compat Add struct declarations to avoid warnings in s3compat_wrapper.h

13 years agos4:s3compat provide replacement functions: lp_security() and lp_passdb_backend()
Andrew Bartlett [Sun, 23 May 2010 15:14:39 +0000 (01:14 +1000)]
s4:s3compat provide replacement functions: lp_security() and lp_passdb_backend()

13 years agos3:param Allow lp_security() and lp_passdb_backend to be omited for s3compat
Andrew Bartlett [Sun, 23 May 2010 15:13:54 +0000 (01:13 +1000)]
s3:param Allow lp_security() and lp_passdb_backend to be omited for s3compat

When we build s3compat into the source4 code, we will provide a
replacement for both these functions.

Andrew Bartlett

13 years agos4:s3compat Add pdb_samba4
Andrew Bartlett [Sun, 23 May 2010 15:12:02 +0000 (01:12 +1000)]
s4:s3compat Add pdb_samba4

pdb_samba4 is a passdb module based on the work Volker did on pdb_ads,
but written directly against the LDB and DSDB APIs used in the source4
code.

In particular, the SID-based extended DN and dsdb_ helper functions
are used to make this a much smaller module.  It contains some write
support, but as the first customer is winbindd, this is unfinished.

The idmap fucntions link to Samba4's idmap API

Andrew Bartlett

13 years agos4:s3compat Provide wrapper functions for pdb_samba4 to use
Andrew Bartlett [Sun, 23 May 2010 15:09:54 +0000 (01:09 +1000)]
s4:s3compat Provide wrapper functions for pdb_samba4 to use

pdb_samba4 will be a Samba3 passdb module written against LDB.

Andrew Bartlett

13 years agos4:s3compat Fix build issues by further avoiding double-compilation of IDL
Andrew Bartlett [Sun, 23 May 2010 15:00:08 +0000 (01:00 +1000)]
s4:s3compat Fix build issues by further avoiding double-compilation of IDL

It causes a lot of trouble if code is compiled for s3compat and for
the rest of Samba4.  This removes one more trouble spot.

Andrew Bartlett

13 years agos4:s3compat Cope with work to unify ndr_string.c
Andrew Bartlett [Fri, 21 May 2010 04:01:09 +0000 (14:01 +1000)]
s4:s3compat Cope with work to unify ndr_string.c

13 years agos4:s3compat Don't include generated files via dependencies and name
Andrew Bartlett [Tue, 18 May 2010 11:52:24 +0000 (21:52 +1000)]
s4:s3compat Don't include generated files via dependencies and name

These generated files are part of NDR_STANDARD

Andrew Bartlett

13 years agos4:s3compat re-add idmap to s3compat winbindd
Andrew Bartlett [Tue, 18 May 2010 03:01:34 +0000 (13:01 +1000)]
s4:s3compat re-add idmap to s3compat winbindd

13 years agos4:s3compat push lp_server_role() into s3compat
Andrew Bartlett [Mon, 17 May 2010 11:02:32 +0000 (21:02 +1000)]
s4:s3compat push lp_server_role() into s3compat

13 years agos4:s3compat Provide make_auth_context_subsystem()
Andrew Bartlett [Mon, 17 May 2010 11:02:59 +0000 (21:02 +1000)]
s4:s3compat Provide make_auth_context_subsystem()

This avoids needing to specify an 'auth methods' in the smb.conf to
run s3compat

Andrew Bartlett

13 years agos4:s3compt provide get_winbind_pipe_dir and get_winbind_priv_pipe_dir
Andrew Bartlett [Mon, 17 May 2010 10:04:13 +0000 (20:04 +1000)]
s4:s3compt provide get_winbind_pipe_dir and get_winbind_priv_pipe_dir

13 years agos4:winbindd Return the wbsrv_service structure to help s3compat
Andrew Bartlett [Mon, 17 May 2010 09:54:45 +0000 (19:54 +1000)]
s4:winbindd Return the wbsrv_service structure to help s3compat

This allows it to be stashed in a static variable if required.

Andrew Bartlett

13 years agos4:s3compat provide hooks for lp_workgroup() etc in s3compat
Andrew Bartlett [Mon, 17 May 2010 09:11:24 +0000 (19:11 +1000)]
s4:s3compat provide hooks for lp_workgroup() etc in s3compat

These functions are key to maintaining a consistant view of the
binary, and it was practical to seperate them from the source3
loadparm.  This helps the s3compat winbind effort.

Andrew Bartlett

13 years agos4:s3compat Put the s3compat_get_conn() hook with the rest of the globals
Andrew Bartlett [Mon, 17 May 2010 09:09:37 +0000 (19:09 +1000)]
s4:s3compat Put the s3compat_get_conn() hook with the rest of the globals

13 years agos4:s3compat Avoid talloc_free() with references
Andrew Bartlett [Mon, 17 May 2010 09:08:19 +0000 (19:08 +1000)]
s4:s3compat Avoid talloc_free() with references

The ldb context is referenced, so free via a parent.

Andrew Bartlett

13 years agos4:s3compat provide new check_sam_security_info3 hook to Samba4's auth
Andrew Bartlett [Mon, 17 May 2010 09:07:14 +0000 (19:07 +1000)]
s4:s3compat provide new check_sam_security_info3 hook to Samba4's auth

This hook avoids a conversion to and from the 'server_info' structure
on the source3 side of the interface.

Andrew Bartlett

13 years agos4:s3compat Fix use-after-free of winbindd client state
Andrew Bartlett [Mon, 17 May 2010 06:19:51 +0000 (16:19 +1000)]
s4:s3compat Fix use-after-free of winbindd client state

We need to remove this from the global list when we talloc_free() it.

13 years agos4:s3compat Don't load or compile auth modules from source3
Andrew Bartlett [Mon, 17 May 2010 04:11:52 +0000 (14:11 +1000)]
s4:s3compat Don't load or compile auth modules from source3

The only auth module should be the wrapper that plugs into the source4
auth subsystem, and builtin, for compatability.

Andrew Bartlett

13 years agos4:s3compat Rationalise headers and _PUBLIC_ declarations
Andrew Bartlett [Mon, 17 May 2010 03:44:47 +0000 (13:44 +1000)]
s4:s3compat Rationalise headers and _PUBLIC_ declarations

These _PUBLIC_ declarations were not needed in the end.  Also just
tidy up the copyright on machine_sid.c (only the API was kept, the
contents are a rewrite).

Andrew Bartlett

13 years agos4:s3compat Add replacement for machine account functions in secrets.c
Andrew Bartlett [Mon, 17 May 2010 03:43:16 +0000 (13:43 +1000)]
s4:s3compat Add replacement for machine account functions in secrets.c

These replacements back onto the cli_credentials and secrets.ldb code,
and ensure that the machine password used is the one stored by 'net
join' from source4/.

Andrew Bartlett

13 years agos4:s3compat cope with rebase - new file print_standard.c
Andrew Bartlett [Fri, 14 May 2010 23:28:30 +0000 (09:28 +1000)]
s4:s3compat cope with rebase - new file print_standard.c

13 years agos4:s3compat Add prototypes for a safer s3compat
Andrew Bartlett [Fri, 14 May 2010 11:14:21 +0000 (21:14 +1000)]
s4:s3compat Add prototypes for a safer s3compat

Manual local prototypes are just trouble waiting to pounce...

Andrew Bartlett

13 years agos4:s3compat Change s3compat winbind interface and add prototypes
Andrew Bartlett [Fri, 14 May 2010 11:08:30 +0000 (21:08 +1000)]
s4:s3compat Change s3compat winbind interface and add prototypes

It's just asking for trouble to use manually created unsyncronised
prototypes.

The winbind change is to have the source3/winbind code engange after
the parsing of the packet, rather than before.  This is because
otherwise there was a conflict with the stream_connection code.

Andrew Bartlett

13 years agos4:s3compat cope with split of winbindd.c
Andrew Bartlett [Fri, 14 May 2010 07:30:55 +0000 (17:30 +1000)]
s4:s3compat cope with split of winbindd.c

13 years agos4:s3compat use more ugly but more portable xterm in for gdb
Andrew Bartlett [Thu, 13 May 2010 07:12:14 +0000 (17:12 +1000)]
s4:s3compat use more ugly but more portable xterm in for gdb

I have difficulty launching gnome-terminal for some reason.

Andrew Bartlett

13 years agos4:s3compat Don't mess with signals or reinit anything in s3compat
Andrew Bartlett [Thu, 13 May 2010 07:11:38 +0000 (17:11 +1000)]
s4:s3compat Don't mess with signals or reinit anything in s3compat

These event management functions should not be called at this layer.

Andrew Bartlett

13 years agos4:s3compat call the simpler s3compat_winbind_accept() routine
Andrew Bartlett [Thu, 13 May 2010 07:09:05 +0000 (17:09 +1000)]
s4:s3compat call the simpler s3compat_winbind_accept() routine

This is a cleaner way to enter into s3compat, and moves as much of the
glue out of source4/winbind as possible.

Andrew Bartlett

13 years agos4:s3compat Change when we start up s3compat
Andrew Bartlett [Thu, 13 May 2010 07:04:52 +0000 (17:04 +1000)]
s4:s3compat Change when we start up s3compat

This allows the s3compat code to run things that need an event
context, and also changes us to use a slightly safer way to cross into
s3compat from winbind.

Andrew Bartlett

13 years agos4:s3compat make smbd_server_fd() return -1 when not yet connected
Andrew Bartlett [Thu, 13 May 2010 01:30:03 +0000 (11:30 +1000)]
s4:s3compat make smbd_server_fd() return -1 when not yet connected

This matches the expectation of some callers in source3/smbd

Andrew Bartlett

13 years agos4:s3compat We can't use s3compat_get_conn() any more
Andrew Bartlett [Thu, 13 May 2010 01:29:10 +0000 (11:29 +1000)]
s4:s3compat We can't use s3compat_get_conn() any more

We have to use functions that don't assume a connection, as winbindd
does not have one.

Andrew Bartlett

13 years agos4:s3compat Add implementation of kerberos_return_pac()
Andrew Bartlett [Wed, 12 May 2010 21:50:10 +0000 (07:50 +1000)]
s4:s3compat Add implementation of kerberos_return_pac()

This allows the winbindd from source3 to link in s3comapt, while using
the source4/ Kerberos code to handle the PAC collection and extraction.

Andrew Bartlett

13 years agos4:s3compat don't include server.c, just server_reload.c and server_exit.c
Andrew Bartlett [Fri, 14 May 2010 06:31:51 +0000 (16:31 +1000)]
s4:s3compat don't include server.c, just server_reload.c and server_exit.c

This made possible by a split up of smbd/server.c

Andrew Bartlett

13 years agos4:s3compat Force no idmap backends for now
Andrew Bartlett [Tue, 11 May 2010 11:18:43 +0000 (21:18 +1000)]
s4:s3compat Force no idmap backends for now

This is needed to get idmap.c to compile.  I'll need to merge with
kai's waf work to get further.

Andrew Bartlett

13 years agos4:s3compat Add building of source3's winbindd in s3compat
Andrew Bartlett [Tue, 11 May 2010 11:14:09 +0000 (21:14 +1000)]
s4:s3compat Add building of source3's winbindd in s3compat

Andrew Bartlett

13 years agos4:s3compat cope with move of lib/account_pol.c -> passdb/account_pol.c
Andrew Bartlett [Tue, 11 May 2010 10:59:14 +0000 (20:59 +1000)]
s4:s3compat cope with move of lib/account_pol.c -> passdb/account_pol.c

13 years agos4:s3compat Remove call to now removed namecache_enable()
Andrew Bartlett [Tue, 11 May 2010 10:58:29 +0000 (20:58 +1000)]
s4:s3compat Remove call to now removed namecache_enable()

13 years agos4:s3compat Provide hooks to get and set 'samba3' and 'samba4' globals
Andrew Bartlett [Tue, 11 May 2010 10:55:30 +0000 (20:55 +1000)]
s4:s3compat Provide hooks to get and set 'samba3' and 'samba4' globals

This avoids the need to compile smbd/server.c and ensures closer
control over these important global variables.

Andrew Bartlett

13 years agos4:s3compat Provide check_sam_security to check local passwords from winbindd
Andrew Bartlett [Tue, 11 May 2010 10:25:59 +0000 (20:25 +1000)]
s4:s3compat Provide check_sam_security to check local passwords from winbindd

source3/winbindd in does not use the full auth subsystem, but instead short-cuts
to this function.

Andrew Bartlett

13 years agos4:s3compat Provide replacement machine_sid functions based on LDB
Andrew Bartlett [Thu, 6 May 2010 06:49:49 +0000 (16:49 +1000)]
s4:s3compat Provide replacement machine_sid functions based on LDB

This ensures that Samba3 has the right machine sid at all times.

Andrew Bartlett

13 years agos4:s3compat Provide a replacement for ads_verify_ticket() that uses GENSEC
Andrew Bartlett [Thu, 6 May 2010 06:45:53 +0000 (16:45 +1000)]
s4:s3compat Provide a replacement for ads_verify_ticket() that uses GENSEC

This should allow Samba3 to use Samba4's keytab when accepting
connections, while matching the behaviour (except for the time_t
time_offset and realm) of Samba3.

Andrew Bartlett

13 years agos4:s3compat Add an auth module that forwards authentication to Samba4
Andrew Bartlett [Wed, 5 May 2010 12:59:42 +0000 (22:59 +1000)]
s4:s3compat Add an auth module that forwards authentication to Samba4

To use, set 'auth methods = samba4' in the smb.conf file, and ensure
you have aready added the user you wish to use to /etc/passwd.
(Winbind does not yet work with s3compat).

Andrew Bartlett

13 years agos4:s3compat Provide a way to get at the Samba4 lp_ctx in Samba3.
Andrew Bartlett [Wed, 5 May 2010 02:45:39 +0000 (12:45 +1000)]
s4:s3compat Provide a way to get at the Samba4 lp_ctx in Samba3.

Andrew Bartlett

13 years agos4:s3compat Import Samba3 IDL files into the s3compat build.
Andrew Bartlett [Wed, 5 May 2010 02:44:47 +0000 (12:44 +1000)]
s4:s3compat Import Samba3 IDL files into the s3compat build.

We now need to build these, as Samba3 no longer has these checked into
the tree.

Andrew Bartlett

13 years agos4:param Add "state dir" and "cache dir" to Samba4's smb.conf parser
Andrew Bartlett [Tue, 4 May 2010 09:15:00 +0000 (19:15 +1000)]
s4:param Add "state dir" and "cache dir" to Samba4's smb.conf parser

These will somehow be passed into the Samba3 code.

Andrew Bartlett

13 years agos4:selftest Provide "state dir" and "cache dir" to selftest
Andrew Bartlett [Tue, 4 May 2010 09:14:16 +0000 (19:14 +1000)]
s4:selftest Provide "state dir" and "cache dir" to selftest

This helps when s3compat is built into the tree, as it needs these set.

Andrew Bartlett

13 years agos4:s3compat Provide a hook to get at the Samba4 loadparm from Samba3
Andrew Bartlett [Tue, 4 May 2010 09:13:08 +0000 (19:13 +1000)]
s4:s3compat Provide a hook to get at the Samba4 loadparm from Samba3

The idea here is that we can provide here functions to make it
possible to hook the Samba4 context-provided loadparm into Samba3's
loadparm callers.

Andrew Bartlett

13 years agos3compat: cleanup duplicate var declarations
Andrew Tridgell [Thu, 29 Apr 2010 01:05:59 +0000 (11:05 +1000)]
s3compat: cleanup duplicate var declarations

13 years agos3compat: fixed build
Andrew Tridgell [Wed, 28 Apr 2010 08:39:15 +0000 (18:39 +1000)]
s3compat: fixed build

s3dynconfig is not needed any more

13 years agos3compat: we always have krb5.h from the in-tree heimdal
Andrew Tridgell [Wed, 28 Apr 2010 08:32:17 +0000 (18:32 +1000)]
s3compat: we always have krb5.h from the in-tree heimdal

13 years agos3compat: don't propogate the _PUBLIC_ override to dependencies
Andrew Tridgell [Mon, 26 Apr 2010 02:53:54 +0000 (12:53 +1000)]
s3compat: don't propogate the _PUBLIC_ override to dependencies

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos3compat: use builtin heimdal for com_err, asn1 and related headers
Andrew Tridgell [Mon, 26 Apr 2010 02:36:57 +0000 (12:36 +1000)]
s3compat: use builtin heimdal for com_err, asn1 and related headers

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos3compat: s3 code needs com_err.h
Andrew Tridgell [Mon, 26 Apr 2010 02:25:03 +0000 (12:25 +1000)]
s3compat: s3 code needs com_err.h

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos3compat: added option s3compat:gdb = true
Andrew Tridgell [Mon, 26 Apr 2010 02:17:41 +0000 (12:17 +1000)]
s3compat: added option s3compat:gdb = true

this starts a gdb on the s3 fileserver code in a gnome-terminal

13 years agos3compat: use internal heimdal from s4 for s3compat build
Andrew Tridgell [Mon, 26 Apr 2010 01:13:36 +0000 (11:13 +1000)]
s3compat: use internal heimdal from s4 for s3compat build

This brings us a step closer to auth integration

13 years agos3compat: pass interactive flag to s3compat_initialise()
Andrew Tridgell [Mon, 26 Apr 2010 01:12:55 +0000 (11:12 +1000)]
s3compat: pass interactive flag to s3compat_initialise()

13 years agos3compat: fixed the build on systems without a system tevent
Andrew Tridgell [Sun, 25 Apr 2010 12:13:04 +0000 (22:13 +1000)]
s3compat: fixed the build on systems without a system tevent

13 years agos3compat: use a config.h from the waf s3 build for now
Andrew Tridgell [Sun, 25 Apr 2010 12:04:26 +0000 (22:04 +1000)]
s3compat: use a config.h from the waf s3 build for now

We need all the configure options from s3 in the s4 build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos3compat: fixed dependency on build_options.c
Andrew Tridgell [Sun, 25 Apr 2010 11:40:08 +0000 (21:40 +1000)]
s3compat: fixed dependency on build_options.c

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos3compat: no s3replace.h for now
Andrew Tridgell [Sun, 25 Apr 2010 11:31:50 +0000 (21:31 +1000)]
s3compat: no s3replace.h for now

13 years agos3compat: change s3compatlib -> s3compatcore
Andrew Tridgell [Sun, 25 Apr 2010 11:27:05 +0000 (21:27 +1000)]
s3compat: change s3compatlib -> s3compatcore

libs3compatlib doesn't sound so nice :)

13 years agos3compat: it is now possible to connect to s3 shares in a s4 server
Andrew Tridgell [Sun, 25 Apr 2010 11:02:10 +0000 (21:02 +1000)]
s3compat: it is now possible to connect to s3 shares in a s4 server

Right now it needs a passdb.tdb from s3.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos3compat: first version of s3compat system
Andrew Tridgell [Sun, 25 Apr 2010 02:59:57 +0000 (12:59 +1000)]
s3compat: first version of s3compat system

This is a prototype of a system to allow Samba4 to call functions from
Samba3 via a shared library. We use hide_symbols=True to avoid symbol
conflicts.

13 years agos3:winbindd Add hooks for s3compat into source3/winbindd
Andrew Bartlett [Fri, 14 May 2010 14:10:56 +0000 (00:10 +1000)]
s3:winbindd Add hooks for s3compat into source3/winbindd

These extra pointers help the s3compat code do it's job

13 years agos3:auth Improve make_auth_context_text_list API - add const
Andrew Bartlett [Tue, 18 May 2010 03:00:53 +0000 (13:00 +1000)]
s3:auth Improve make_auth_context_text_list API - add const

13 years agos3:auth Enable make_auth_context_subsystem to be replaced in s3compat
Andrew Bartlett [Mon, 17 May 2010 10:47:59 +0000 (20:47 +1000)]
s3:auth Enable make_auth_context_subsystem to be replaced in s3compat

This allows s3compat to replace this with a function that only directs
authentication to the source4 auth subsystem.

Andrew Bartlett

13 years agos3compat-only s3:winbindd Split event handlers from winbindd.c
Andrew Bartlett [Wed, 26 May 2010 01:04:51 +0000 (11:04 +1000)]
s3compat-only s3:winbindd Split event handlers from winbindd.c

This allows the s3compat layer to register the handlers, without
having a conflicting main() function.

Andrew Bartlett

13 years agos3compat-only s3:winbind Split wb_process_request() into a new file
Andrew Bartlett [Fri, 14 May 2010 07:26:46 +0000 (17:26 +1000)]
s3compat-only s3:winbind Split wb_process_request() into a new file

This splits up winbindd.c, which was previously very long.

Andrew Bartlett

13 years agos3compat-only s3:winbindd Move more parts of winbindd.c into winbindd_event.c
Andrew Bartlett [Fri, 14 May 2010 06:21:32 +0000 (16:21 +1000)]
s3compat-only s3:winbindd Move more parts of winbindd.c into winbindd_event.c

This allows another attempt at where to attach s3compat into
source3/winbindd

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3:auth Add error paths for invalid password_state values
Andrew Bartlett [Tue, 4 May 2010 13:44:50 +0000 (23:44 +1000)]
s3:auth Add error paths for invalid password_state values

13 years agos3:auth Change winbindd -> auth interface to more standard structures
Andrew Bartlett [Mon, 17 May 2010 09:04:31 +0000 (19:04 +1000)]
s3:auth Change winbindd -> auth interface to more standard structures

This removes conversions to and from the source3 varient of the
server_info structure when replaced in s3compat, and presents a tidier
interface to winbindd in any case.

Andrew Bartlett

13 years agoauth/common_auth.h Add a few more 'common' functions
Andrew Bartlett [Mon, 17 May 2010 03:38:08 +0000 (13:38 +1000)]
auth/common_auth.h Add a few more 'common' functions

This helps ensure that we don't have different prototypes for the
different implementaitons of these functions.

Andrew Bartlett

13 years agoauth Add kerberos_return_pac() to common_auth.h
Andrew Bartlett [Tue, 18 May 2010 03:11:46 +0000 (13:11 +1000)]
auth Add kerberos_return_pac() to common_auth.h