kai/samba.git
13 years agos3:dom_sid Global replace of DOM_SID with struct dom_sid
Andrew Bartlett [Fri, 21 May 2010 01:25:01 +0000 (11:25 +1000)]
s3:dom_sid Global replace of DOM_SID with struct dom_sid

This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos3:passdb Remove use of uint8 uint16 and uint32 in favour of C99 types
Andrew Bartlett [Fri, 21 May 2010 00:38:04 +0000 (10:38 +1000)]
s3:passdb Remove use of uint8 uint16 and uint32 in favour of C99 types

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos4:libcli/ldap Rename ldap.h to libcli_ldap.h
Andrew Bartlett [Fri, 21 May 2010 07:39:15 +0000 (17:39 +1000)]
s4:libcli/ldap Rename ldap.h to libcli_ldap.h

It is a problem if a samba header is called ldap.h if we also want
to use OpenLDAP's ldap.h

Andrew Bartlett

13 years agos4:auth Remove un-needed headers.
Andrew Bartlett [Fri, 21 May 2010 06:38:44 +0000 (16:38 +1000)]
s4:auth Remove un-needed headers.

13 years agos4:auth Fix previous commit - segfault in determinging a user's groups
Andrew Bartlett [Fri, 21 May 2010 06:01:34 +0000 (16:01 +1000)]
s4:auth Fix previous commit - segfault in determinging a user's groups

The previous commit didn't include these vital fixes.

Andrew Bartlett

13 years agoRevert "Make -k a simple non-bool option."
Andrew Bartlett [Fri, 21 May 2010 05:04:36 +0000 (15:04 +1000)]
Revert "Make -k a simple non-bool option."

This reverts commit 2bbf055dbb15ea99b80ae66adc906ad5494a3999.

This change broke 'make test', because the current syntax is deliberate
and an integral part of how Samba4 uses Kerberos.

If a change like this is to be implemented, then careful review of all
our test scripts must be taken first, and then new options such as
--dont-use-kerberos, --may-use-kerberos and --must-use-kerberos
should be added.

Andrew Bartlett

13 years agos4:auth Error out when a memberOf DN does not have a SID
Andrew Bartlett [Fri, 21 May 2010 05:02:22 +0000 (15:02 +1000)]
s4:auth Error out when a memberOf DN does not have a SID

We previously segfaulted if this was not the case.

Andrew Bartlett

13 years agos4-smbtorture: add kernel_mode_registry_path().
Günther Deschner [Thu, 20 May 2010 23:25:16 +0000 (01:25 +0200)]
s4-smbtorture: add kernel_mode_registry_path().

Guenther

13 years agos4-smbtorture: Fix volatile test in RPC-WINREG.
Günther Deschner [Thu, 20 May 2010 22:28:36 +0000 (00:28 +0200)]
s4-smbtorture: Fix volatile test in RPC-WINREG.

Guenther

13 years agos3: registry: add tests with empty valuename
Gregor Beck [Wed, 19 May 2010 09:37:23 +0000 (11:37 +0200)]
s3: registry: add tests with empty valuename

Signed-off-by: Michael Adam <obnox@samba.org>
13 years agos3: registry: let test_setvalue use getvalueraw instead of enumerate
Gregor Beck [Wed, 19 May 2010 10:20:10 +0000 (12:20 +0200)]
s3: registry: let test_setvalue use getvalueraw instead of enumerate

simplifies code, prerequisite to handle empty valuenames

Signed-off-by: Michael Adam <obnox@samba.org>
13 years agos3: registry: fix query empty valuenames
Gregor Beck [Wed, 19 May 2010 09:16:54 +0000 (11:16 +0200)]
s3: registry: fix query empty valuenames

Remove a check introduced with commit 80c2446321c519797a57b8006942a983f8481d79
wich causes queries for values with empty name to fail. Empty valuenames are
used for the so called default value of a key.

Signed-off-by: Michael Adam <obnox@samba.org>
13 years agos3-waf: Actually make --with/--without-swat work
Kai Blin [Thu, 20 May 2010 21:05:21 +0000 (23:05 +0200)]
s3-waf: Actually make --with/--without-swat work

13 years agos3-waf: Really disable winbindd build when --without-winbind is specified
Kai Blin [Thu, 20 May 2010 20:58:59 +0000 (22:58 +0200)]
s3-waf: Really disable winbindd build when --without-winbind is specified

13 years agoMake -k a simple non-bool option.
Jeremy Allison [Thu, 20 May 2010 21:59:34 +0000 (14:59 -0700)]
Make -k a simple non-bool option.

Jeremy.

13 years agoFix what looks like a cut-and-paste error in our read_negTokenInit() function.
Jeremy Allison [Thu, 20 May 2010 21:30:44 +0000 (14:30 -0700)]
Fix what looks like a cut-and-paste error in our read_negTokenInit() function.

We should never be calling asn1_push_XXX functions inside an asn1
reading function. Change asn1_push_tag() -> asn1_start_tag() and
asn1_pop_tag() -> asn1_end_tag(). This allows us to connect to a
NetApp filer at the Microsoft plugfest.

Andrew PLEASE CHECK !

Jeremy.

13 years agowaf: fix the build of nsswitch libwbclient.
Günther Deschner [Thu, 20 May 2010 21:40:30 +0000 (23:40 +0200)]
waf: fix the build of nsswitch libwbclient.

Guenther

13 years agos4-smbtorture: use push_reg_sz/push_reg_multi_sz in spoolss tests.
Günther Deschner [Thu, 20 May 2010 20:13:48 +0000 (22:13 +0200)]
s4-smbtorture: use push_reg_sz/push_reg_multi_sz in spoolss tests.

Guenther

13 years agos4-smbtorture: pass down hkey to main keytest in RPC-WINREG.
Günther Deschner [Thu, 20 May 2010 18:50:31 +0000 (20:50 +0200)]
s4-smbtorture: pass down hkey to main keytest in RPC-WINREG.

Guenther

13 years agos4-smbtorture: print local_machine name in RemoteFindFirstPrinterChangeNotifyEx test.
Günther Deschner [Thu, 20 May 2010 19:57:53 +0000 (21:57 +0200)]
s4-smbtorture: print local_machine name in RemoteFindFirstPrinterChangeNotifyEx test.

Guenther

13 years agos4-smbtorture: use push_reg_sz()/push_reg_multi_sz() in RPC-WINREG.
Günther Deschner [Thu, 20 May 2010 18:49:44 +0000 (20:49 +0200)]
s4-smbtorture: use push_reg_sz()/push_reg_multi_sz() in RPC-WINREG.

Guenther

13 years agos3-waf: ndr string functions moved to top level
Kai Blin [Thu, 20 May 2010 20:30:24 +0000 (22:30 +0200)]
s3-waf: ndr string functions moved to top level

13 years agos3-waf: Fix the build after rebase
Kai Blin [Thu, 20 May 2010 08:24:37 +0000 (10:24 +0200)]
s3-waf: Fix the build after rebase

13 years agos3-waf: more elaborate host_os check for STAT_ST_BLOCKSIZE
Kai Blin [Fri, 14 May 2010 09:03:19 +0000 (11:03 +0200)]
s3-waf: more elaborate host_os check for STAT_ST_BLOCKSIZE

13 years agos3-waf: fix linking of eventlogadm by adding cap as dependency
Michael Adam [Wed, 12 May 2010 21:48:10 +0000 (23:48 +0200)]
s3-waf: fix linking of eventlogadm by adding cap as dependency

13 years agos3-waf: fix linking of swat by adding cap as dependency
Michael Adam [Wed, 12 May 2010 21:47:36 +0000 (23:47 +0200)]
s3-waf: fix linking of swat by adding cap as dependency

13 years agos3-waf: Fix build with ldap by adding a SMBLDAP subsystem
Kai Blin [Wed, 12 May 2010 20:43:18 +0000 (22:43 +0200)]
s3-waf: Fix build with ldap by adding a SMBLDAP subsystem

13 years agos3-waf: fix the winbindd build again
Kai Blin [Wed, 12 May 2010 11:39:00 +0000 (05:39 -0600)]
s3-waf: fix the winbindd build again

13 years agos3-waf: Fix up PIDL includes.
Kai Blin [Wed, 12 May 2010 11:23:27 +0000 (05:23 -0600)]
s3-waf: Fix up PIDL includes.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

13 years agos3-waf: Some files moved during the rebase
Kai Blin [Wed, 12 May 2010 10:32:30 +0000 (04:32 -0600)]
s3-waf: Some files moved during the rebase

13 years agos3-waf: Add autogeneration with PIDL
Stefan Metzmacher [Wed, 12 May 2010 10:31:27 +0000 (04:31 -0600)]
s3-waf: Add autogeneration with PIDL

13 years agos3-waf: Remove references to LDB
Kai Blin [Wed, 12 May 2010 10:27:49 +0000 (04:27 -0600)]
s3-waf: Remove references to LDB

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

13 years agos3-waf: Also include source4/ when looking for headers
Stefan Metzmacher [Wed, 12 May 2010 10:23:10 +0000 (04:23 -0600)]
s3-waf: Also include source4/ when looking for headers

13 years agos3-waf: build shared modules as subsystems
Kai Blin [Tue, 11 May 2010 15:44:25 +0000 (17:44 +0200)]
s3-waf: build shared modules as subsystems

13 years agos3-waf: autogenerate lists of static modules
Kai Blin [Tue, 11 May 2010 15:14:54 +0000 (17:14 +0200)]
s3-waf: autogenerate lists of static modules

13 years agos3-waf: clean up includes
Kai Blin [Tue, 11 May 2010 15:13:05 +0000 (17:13 +0200)]
s3-waf: clean up includes

13 years agos3-waf: create a SECRETS subsystem
Kai Blin [Tue, 11 May 2010 15:11:41 +0000 (17:11 +0200)]
s3-waf: create a SECRETS subsystem

13 years agos3-waf: clean up dependencies a little
Kai Blin [Tue, 11 May 2010 13:24:13 +0000 (15:24 +0200)]
s3-waf: clean up dependencies a little

13 years agos3-waf: tdb includes are in lib/tdb/include
Kai Blin [Tue, 11 May 2010 13:23:37 +0000 (15:23 +0200)]
s3-waf: tdb includes are in lib/tdb/include

13 years agos3-waf: fix eventlogadm build with winbind
Kai Blin [Tue, 11 May 2010 13:00:43 +0000 (15:00 +0200)]
s3-waf: fix eventlogadm build with winbind

13 years agos3-waf: Autogenerate the static and dynamic init function calls
Kai Blin [Tue, 11 May 2010 08:32:07 +0000 (10:32 +0200)]
s3-waf: Autogenerate the static and dynamic init function calls

13 years agos3-waf: add popt and tdb include dirs to the includes list
Kai Blin [Tue, 11 May 2010 08:31:22 +0000 (10:31 +0200)]
s3-waf: add popt and tdb include dirs to the includes list

13 years agos3-waf: Fix up the winbindd build
Kai Blin [Tue, 11 May 2010 08:30:25 +0000 (10:30 +0200)]
s3-waf: Fix up the winbindd build

13 years agos3-waf: add eventlogadm binary
Kai Blin [Fri, 30 Apr 2010 17:45:06 +0000 (19:45 +0200)]
s3-waf: add eventlogadm binary

13 years agos3-waf: Use a common subsystem for the kerberos client code
Kai Blin [Fri, 30 Apr 2010 12:43:57 +0000 (14:43 +0200)]
s3-waf: Use a common subsystem for the kerberos client code

13 years agos3-waf: Use a common subsystem for samba-popt code
Kai Blin [Fri, 30 Apr 2010 12:33:49 +0000 (14:33 +0200)]
s3-waf: Use a common subsystem for samba-popt code

13 years agos3-waf: note that the options are broken
Kai Blin [Fri, 30 Apr 2010 12:22:06 +0000 (14:22 +0200)]
s3-waf: note that the options are broken

13 years agos3-waf: replace all - with _ in the configuration option names
Kai Blin [Fri, 30 Apr 2010 12:21:28 +0000 (14:21 +0200)]
s3-waf: replace all - with _ in the configuration option names

13 years agos3-waf: Build swat
Kai Blin [Fri, 30 Apr 2010 12:18:20 +0000 (14:18 +0200)]
s3-waf: Build swat

13 years agos3-waf: build winbindd again
Kai Blin [Fri, 30 Apr 2010 12:17:30 +0000 (14:17 +0200)]
s3-waf: build winbindd again

13 years agos3-waf: fix up the LDAP objects if LDAP isn't built
Kai Blin [Fri, 30 Apr 2010 09:25:52 +0000 (11:25 +0200)]
s3-waf: fix up the LDAP objects if LDAP isn't built

13 years agos3-waf: install swat files
Andrew Tridgell [Sun, 18 Apr 2010 12:43:01 +0000 (06:43 -0600)]
s3-waf: install swat files

13 years agos3-waf: fixed install path for sbin binaries
Andrew Tridgell [Sun, 18 Apr 2010 12:42:49 +0000 (06:42 -0600)]
s3-waf: fixed install path for sbin binaries

13 years agos3-waf: fixed SWATDIR to match old build
Andrew Tridgell [Sun, 18 Apr 2010 12:42:20 +0000 (06:42 -0600)]
s3-waf: fixed SWATDIR to match old build

13 years agos3-waf: Fix the minimal build
Kai Blin [Fri, 30 Apr 2010 08:15:11 +0000 (10:15 +0200)]
s3-waf: Fix the minimal build

When using the internal zlib and popt, the dependencies and includes
have to be adapted a bit

13 years agos3-waf: Fix the build --with-ldap
Kai Blin [Fri, 30 Apr 2010 08:07:28 +0000 (02:07 -0600)]
s3-waf: Fix the build --with-ldap

The LDAP source files as set by configure weren't detected correctly in the wscript_build
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

13 years agos3-waf: Fix global includes to fix waf configure --help output
Kai Blin [Fri, 23 Apr 2010 06:59:43 +0000 (08:59 +0200)]
s3-waf: Fix global includes to fix waf configure --help output

13 years agos3-waf: Introduce more subsystems to reduce build time
Kai Blin [Thu, 22 Apr 2010 21:33:38 +0000 (23:33 +0200)]
s3-waf: Introduce more subsystems to reduce build time

13 years agos3-waf: Don't build winbindd when --without-winbind is set
Kai Blin [Wed, 21 Apr 2010 20:31:35 +0000 (22:31 +0200)]
s3-waf: Don't build winbindd when --without-winbind is set

13 years agos3-waf: Get winbindd to build again with current master
Kai Blin [Wed, 21 Apr 2010 09:08:37 +0000 (11:08 +0200)]
s3-waf: Get winbindd to build again with current master

13 years agos3-waf: Add dummy configuration option for pthreadpool
Kai Blin [Wed, 21 Apr 2010 06:07:50 +0000 (08:07 +0200)]
s3-waf: Add dummy configuration option for pthreadpool

13 years agos3-waf: Add dummy configuration option for utmp
Kai Blin [Wed, 21 Apr 2010 06:04:12 +0000 (08:04 +0200)]
s3-waf: Add dummy configuration option for utmp

13 years agos3-waf: Add dummy configuration option for sendfile-support
Kai Blin [Wed, 21 Apr 2010 06:03:38 +0000 (08:03 +0200)]
s3-waf: Add dummy configuration option for sendfile-support

13 years agos3-waf: Add dummy configuration options for quotas
Kai Blin [Wed, 21 Apr 2010 06:02:31 +0000 (08:02 +0200)]
s3-waf: Add dummy configuration options for quotas

13 years agos3-waf: Add dummy configuration option for PAM
Kai Blin [Wed, 21 Apr 2010 06:00:52 +0000 (08:00 +0200)]
s3-waf: Add dummy configuration option for PAM

13 years agos3-waf: Add configuration option for merged build
Kai Blin [Wed, 21 Apr 2010 05:58:44 +0000 (07:58 +0200)]
s3-waf: Add configuration option for merged build

This doesn't enable the merged build, but doesn't error out when the --disable-merged-build configuration option is set

13 years agos3-waf: Fix install location of testparm and wbinfo
Kai Blin [Sun, 18 Apr 2010 08:08:25 +0000 (10:08 +0200)]
s3-waf: Fix install location of testparm and wbinfo

13 years agos3-waf: Build LDB as a subsystem
Kai Blin [Sun, 18 Apr 2010 08:07:54 +0000 (10:07 +0200)]
s3-waf: Build LDB as a subsystem

13 years agos3-waf: build testparm and winbindd
Kai Blin [Sun, 18 Apr 2010 07:30:59 +0000 (09:30 +0200)]
s3-waf: build testparm and winbindd

13 years agos3-waf dynconfig: s3 configfile default is $LIBDIR/smb.conf
Kai Blin [Sun, 18 Apr 2010 07:26:54 +0000 (09:26 +0200)]
s3-waf dynconfig: s3 configfile default is $LIBDIR/smb.conf

13 years agos3-waf: merged auth subsystem changes from master
Andrew Tridgell [Mon, 12 Apr 2010 06:05:40 +0000 (00:05 -0600)]
s3-waf: merged auth subsystem changes from master

13 years agos3-waf: move the KRB5_DEPRECATED check into lib/replace
Andrew Tridgell [Mon, 12 Apr 2010 06:40:54 +0000 (00:40 -0600)]
s3-waf: move the KRB5_DEPRECATED check into lib/replace

this needs to be with the krb5.h check

13 years agos3-waf: Don't recurse into tsocket dir during configure
Kai Blin [Mon, 12 Apr 2010 05:21:41 +0000 (07:21 +0200)]
s3-waf: Don't recurse into tsocket dir during configure

13 years agos3-waf: Add enable selftest configuration option
Andrew Tridgell [Thu, 8 Apr 2010 19:05:36 +0000 (13:05 -0600)]
s3-waf: Add enable selftest configuration option

13 years agos3-waf: correctly handle the libcap dependency when libcap is not installed
Andrew Tridgell [Thu, 8 Apr 2010 21:03:40 +0000 (15:03 -0600)]
s3-waf: correctly handle the libcap dependency when libcap is not installed

13 years agos3-waf: build wbinfo using waf
Kai Blin [Sun, 11 Apr 2010 21:01:29 +0000 (23:01 +0200)]
s3-waf: build wbinfo using waf

13 years agos3-waf: Add ctags command
Kai Blin [Sun, 11 Apr 2010 20:43:23 +0000 (22:43 +0200)]
s3-waf: Add ctags command

13 years agos3-waf: Build nmbd using waf as well
Kai Blin [Sun, 11 Apr 2010 20:05:50 +0000 (22:05 +0200)]
s3-waf: Build nmbd using waf as well

13 years agos3-waf: Support smbd build without ldap and kerberos
Kai Blin [Sun, 11 Apr 2010 20:05:10 +0000 (22:05 +0200)]
s3-waf: Support smbd build without ldap and kerberos

13 years agos3-waf: Allow building without ads/ldap/krb5 even if the libs are installed
Kai Blin [Sun, 11 Apr 2010 08:36:05 +0000 (10:36 +0200)]
s3-waf: Allow building without ads/ldap/krb5 even if the libs are installed

13 years agobuild: Don't look for krb5.h in libreplace
Kai Blin [Sun, 11 Apr 2010 08:34:52 +0000 (10:34 +0200)]
build: Don't look for krb5.h in libreplace

13 years agos3-waf: Allow using --enable/--disable options as well
Kai Blin [Sun, 11 Apr 2010 08:34:12 +0000 (10:34 +0200)]
s3-waf: Allow using --enable/--disable options as well

13 years agos3-waf: correctly handle cups dependencies when cups development packages are not...
Andrew Tridgell [Thu, 8 Apr 2010 21:04:55 +0000 (15:04 -0600)]
s3-waf: correctly handle cups dependencies when cups development packages are not installed

13 years agos3-waf: Add helper that facilitates defining --with-x and --without-x options
Kai Blin [Sun, 11 Apr 2010 07:35:08 +0000 (09:35 +0200)]
s3-waf: Add helper that facilitates defining --with-x and --without-x options

13 years agos3-waf: Fix the CUPS dependency
Kai Blin [Thu, 8 Apr 2010 06:09:11 +0000 (08:09 +0200)]
s3-waf: Fix the CUPS dependency

13 years agos3-waf: All sorts of nasty hacks to finally get smbd to build/link
Andrew Tridgell [Wed, 7 Apr 2010 13:34:12 +0000 (07:34 -0600)]
s3-waf: All sorts of nasty hacks to finally get smbd to build/link

Pair-Programmed-With: Kai Blin <kai@samba.org>

13 years agos3-waf: Add some more krb5 checks
Kai Blin [Mon, 5 Apr 2010 22:44:25 +0000 (00:44 +0200)]
s3-waf: Add some more krb5 checks

There is still quite a few of them missing.

13 years agos3-waf: Check for LDAP
Kai Blin [Mon, 5 Apr 2010 21:44:37 +0000 (23:44 +0200)]
s3-waf: Check for LDAP

13 years agos3-waf: Move cups, ldap and krb5 checks to the end of the wscript file
Kai Blin [Mon, 5 Apr 2010 12:41:23 +0000 (14:41 +0200)]
s3-waf: Move cups, ldap and krb5 checks to the end of the wscript file

13 years agos3-waf: Check for KRB5_DEPRECATED handling
Kai Blin [Mon, 5 Apr 2010 12:40:10 +0000 (14:40 +0200)]
s3-waf: Check for KRB5_DEPRECATED handling

13 years agos3-waf: Fake some defines that need to be set by configure options later
Kai Blin [Mon, 5 Apr 2010 12:39:07 +0000 (14:39 +0200)]
s3-waf: Fake some defines that need to be set by configure options later

13 years agos3-waf: Add more objects trying to build smbd
Kai Blin [Mon, 5 Apr 2010 07:34:43 +0000 (01:34 -0600)]
s3-waf: Add more objects trying to build smbd

13 years agos3-waf: Added support dynconfig cflags
Kai Blin [Fri, 26 Mar 2010 22:52:32 +0000 (16:52 -0600)]
s3-waf: Added support dynconfig cflags

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

13 years agoFix bug #7410 - samba sends "raw" inode number as uniqueid with unix extensions.
Jeremy Allison [Thu, 20 May 2010 18:36:47 +0000 (11:36 -0700)]
Fix  bug #7410 - samba sends "raw" inode number as uniqueid with unix extensions.

Move to a consistent get_FileIndex() function for all inode returns,
that checks if st_dev on the file is identical to the top directory
dev_t of the exported share, and if so uses the raw 64-bit inode
number. If it isn't (we've traversed a mount point) - return what
we used to do for Windows which is the concatination of the bottom
32-bits of the inode with the 32-bit device number. We can get more
creative with this over time (hashing?) if we want as now all inode returns go
through this single function.

Jeremy.

13 years agos4:ldb-samba: handle more GUID attributes
Stefan Metzmacher [Fri, 30 Apr 2010 16:24:53 +0000 (18:24 +0200)]
s4:ldb-samba: handle more GUID attributes

metze

13 years agos3-libgpo: enable LDAP sign in ads_get_gpo_list().
Günther Deschner [Wed, 2 Sep 2009 19:21:26 +0000 (21:21 +0200)]
s3-libgpo: enable LDAP sign in ads_get_gpo_list().

Guenther

13 years agos3-libads: add ads_set_sasl_wrap_flags().
Günther Deschner [Wed, 2 Sep 2009 19:16:45 +0000 (21:16 +0200)]
s3-libads: add ads_set_sasl_wrap_flags().

Guenther

13 years agos3-net: show how to use filters for group policy processing.
Günther Deschner [Wed, 2 Sep 2009 20:07:01 +0000 (22:07 +0200)]
s3-net: show how to use filters for group policy processing.

Guenther

13 years agos3-net: let net_ads_gpo() call no_ads when built w/o ads support.
Günther Deschner [Wed, 2 Sep 2009 20:04:03 +0000 (22:04 +0200)]
s3-net: let net_ads_gpo() call no_ads when built w/o ads support.

Guenther

13 years agos3-net: compile net_ads_gpo_apply().
Günther Deschner [Wed, 2 Sep 2009 19:15:28 +0000 (21:15 +0200)]
s3-net: compile net_ads_gpo_apply().

Guenther