ira/wip.git
13 years agoAdd smbldap_talloc_single_blob()
Volker Lendecke [Fri, 29 May 2009 19:27:53 +0000 (21:27 +0200)]
Add smbldap_talloc_single_blob()

13 years agos4-smbtorture: fix the build w/o libnetapi.
Günther Deschner [Fri, 29 May 2009 17:22:43 +0000 (19:22 +0200)]
s4-smbtorture: fix the build w/o libnetapi.

This is surely the wrong fix, but I could not figure out why the samba4 build
system adds the init function although the m4 macro had switched off the torture
libnetapi subsystem when the headers and libs were not found.

Can one of the samba4 build gurus please have a look ?

Guenther

13 years agoutil: Change license on tevent_unix to LGPLv3+
Volker Lendecke [Fri, 29 May 2009 16:28:36 +0000 (18:28 +0200)]
util: Change license on tevent_unix to LGPLv3+

13 years agos3 async wbclient: Change license to LGPLv3+
Volker Lendecke [Fri, 29 May 2009 12:15:51 +0000 (14:15 +0200)]
s3 async wbclient: Change license to LGPLv3+

13 years agoasync_sock: Change license to LGPLv3+
Volker Lendecke [Fri, 29 May 2009 12:14:50 +0000 (14:14 +0200)]
async_sock: Change license to LGPLv3+

13 years agos3 wbc_async: Fix copyright notice cut&paste error.
Kai Blin [Fri, 29 May 2009 12:06:50 +0000 (14:06 +0200)]
s3 wbc_async: Fix copyright notice cut&paste error.

Volker created all these prototypes, I just created the file and moved them over.

Signed-off-by: Kai Blin <kai@samba.org>
13 years agoRevert "s3-selftest: enable NETAPI-INITIALIZE and NETAPI-USER against samba3."
Günther Deschner [Fri, 29 May 2009 16:11:39 +0000 (18:11 +0200)]
Revert "s3-selftest: enable NETAPI-INITIALIZE and NETAPI-USER against samba3."

This reverts commit 8da15dc29a920cd6f4d2ed96e8de4fbcd9d1ba11.

13 years agos3-selftest: enable NETAPI-INITIALIZE and NETAPI-USER against samba3.
Günther Deschner [Fri, 29 May 2009 14:59:35 +0000 (16:59 +0200)]
s3-selftest: enable NETAPI-INITIALIZE and NETAPI-USER against samba3.

Guenther

13 years agos4-smbtorture: add NETAPI-GROUP test.
Günther Deschner [Fri, 29 May 2009 14:49:29 +0000 (16:49 +0200)]
s4-smbtorture: add NETAPI-GROUP test.

Guenther

13 years agos4-smbtorture: add NETAPI-USER test.
Günther Deschner [Fri, 29 May 2009 14:39:04 +0000 (16:39 +0200)]
s4-smbtorture: add NETAPI-USER test.

Guenther

13 years agos3-passdb: fix uninitialized variable in local_password_change().
Günther Deschner [Fri, 29 May 2009 16:08:02 +0000 (18:08 +0200)]
s3-passdb: fix uninitialized variable in local_password_change().

Guenther

13 years agoConsolidate create/delete account paths in pdbedit
Simo Sorce [Sun, 17 May 2009 00:36:28 +0000 (20:36 -0400)]
Consolidate create/delete account paths in pdbedit

Use common paths like for smbpasswd, so that all utilities
behave the same way. As for smbpasswd this changes the behavior
of pdbedit to create/delete unix users is the add/delete user
scripts are provided, or ldapsam:editposix is configured.

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agoConsolidate user create/delete paths in smbpasswd
Simo Sorce [Sat, 16 May 2009 22:10:39 +0000 (18:10 -0400)]
Consolidate user create/delete paths in smbpasswd

This patch changes the way smbpasswd behaves when adding/deleting users.
smbpasswd now calls pdb_create_user/pdb_delete_user, this means that if
add/delete user scripts are configured then they are used to create or
delete unix users as well. If the scripts are not defined the behavioris
unchanged.
This also allow to use smbpasswd -a/-x with ldapsam:editposix to allow
automatic creation/deletion of users.

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos4-smbtorture: add very basic LIBNETAPI testsuite.
Günther Deschner [Fri, 29 May 2009 14:36:44 +0000 (16:36 +0200)]
s4-smbtorture: add very basic LIBNETAPI testsuite.

Guenther

13 years agos3-selftest: enable LOCAL-NSS-WRAPPER test against samba 3.
Günther Deschner [Thu, 28 May 2009 14:14:18 +0000 (16:14 +0200)]
s3-selftest: enable LOCAL-NSS-WRAPPER test against samba 3.

Guenther

13 years agos4-smbtorture: add a very basic NSS-WRAPPER testsuite.
Günther Deschner [Thu, 28 May 2009 14:13:33 +0000 (16:13 +0200)]
s4-smbtorture: add a very basic NSS-WRAPPER testsuite.

Guenther

13 years agoutil: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.
Günther Deschner [Thu, 28 May 2009 14:08:04 +0000 (16:08 +0200)]
util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.

Guenther

13 years agos4-smbtorture: remove trailing whitespace.
Günther Deschner [Fri, 29 May 2009 11:18:23 +0000 (13:18 +0200)]
s4-smbtorture: remove trailing whitespace.

Guenther

13 years agos4-smbtorture: Fix test_SamLogon() for netlogon servers not yet supporting
Günther Deschner [Fri, 29 May 2009 11:16:25 +0000 (13:16 +0200)]
s4-smbtorture: Fix test_SamLogon() for netlogon servers not yet supporting
validation level 6.

Guenther

13 years agos3-netlogon: Fix _netr_LogonSamLogon{Ex} with validation level != 3.
Günther Deschner [Fri, 29 May 2009 11:15:27 +0000 (13:15 +0200)]
s3-netlogon: Fix _netr_LogonSamLogon{Ex} with validation level != 3.

Guenther

13 years agos3-netlogon: return proper error code for unsupported validation class.
Günther Deschner [Fri, 29 May 2009 10:42:15 +0000 (12:42 +0200)]
s3-netlogon: return proper error code for unsupported validation class.

Guenther

13 years agos3-rpc_server: increase max number of open policy handles per pipe to 2048.
Günther Deschner [Fri, 29 May 2009 10:41:41 +0000 (12:41 +0200)]
s3-rpc_server: increase max number of open policy handles per pipe to 2048.

Guenther

13 years agos3/getdcname: Fix 'net' crash.
Kumar Thangavelu [Fri, 29 May 2009 09:27:38 +0000 (11:27 +0200)]
s3/getdcname:  Fix 'net' crash.

'net' command crashed when attempting to join a
domain. This occurred in a very specific case where
the DC had multiple IPs and one of the IPs was invalid.

Signed-off-by: Volker Lendecke <vl@samba.org>
13 years agos3/docs: Fix typo.
Karolin Seeger [Fri, 29 May 2009 07:49:49 +0000 (09:49 +0200)]
s3/docs: Fix typo.

This fixes bug #4341.
Thanks to Michael Cartmell <michael.cartmell [at] thomson.com> for reporting!

Karolin

13 years agoFix some nonempty blank lines
Volker Lendecke [Fri, 29 May 2009 07:42:31 +0000 (09:42 +0200)]
Fix some nonempty blank lines

13 years agoWin2k3 don't allow creating of domain trust accounts over SAMR
Andrew Bartlett [Fri, 29 May 2009 07:12:06 +0000 (17:12 +1000)]
Win2k3 don't allow creating of domain trust accounts over SAMR

13 years agos4:torture Don't try to Close a Deleted handle
Andrew Bartlett [Fri, 29 May 2009 07:02:19 +0000 (17:02 +1000)]
s4:torture Don't try to Close a Deleted handle

13 years agos4: Add additional 2-letter SID/RID mappings.
Andrew Kroeger [Fri, 29 May 2009 01:18:33 +0000 (20:18 -0500)]
s4: Add additional 2-letter SID/RID mappings.

Information from http://msdn.microsoft.com/en-us/library/aa379602(VS.85).aspx

13 years agos4: Add additional well-known SID's/RID's.
Andrew Kroeger [Fri, 29 May 2009 01:02:42 +0000 (20:02 -0500)]
s4: Add additional well-known SID's/RID's.

Information was found at http://support.microsoft.com/kb/243330

Not all well-known identifiers were included - only those necessary for
enhancing the 2-letter mappings used in SDDL strings were added.

13 years agos4:setup Remove generated attributes from provision_configuration
Andrew Bartlett [Fri, 29 May 2009 02:15:28 +0000 (12:15 +1000)]
s4:setup Remove generated attributes from provision_configuration

Incorrectly added in 95eeef91d3ed7daf8e19029eadcc610caf26db63, and
found by OpenLDAP backend tests run by Theodor Chirana <office@adaptcom.ro>

Andrew Bartlett

13 years agos4:torture Don't run QueryDisplayInfo test for SAMR-USERS-PRIVILEGES
Andrew Bartlett [Thu, 28 May 2009 22:35:59 +0000 (08:35 +1000)]
s4:torture Don't run QueryDisplayInfo test for SAMR-USERS-PRIVILEGES

13 years agos4:torture Clean up users and groups added in RPC-SAMR-LARGE-DC
Andrew Bartlett [Thu, 28 May 2009 22:35:41 +0000 (08:35 +1000)]
s4:torture Clean up users and groups added in RPC-SAMR-LARGE-DC

13 years agos4:torture Half the repeditive tests run by RPC-SAMR-PASSWORDS-PWDLASTSET
Andrew Bartlett [Thu, 28 May 2009 04:49:29 +0000 (14:49 +1000)]
s4:torture Half the repeditive tests run by RPC-SAMR-PASSWORDS-PWDLASTSET

13 years agoExplicitly list RPC-SAMR-PASSWORDS-PWDLASTSET and RPC-SAMR-USERS-PRIVILAGES as slow
Andrew Bartlett [Thu, 28 May 2009 04:13:11 +0000 (14:13 +1000)]
Explicitly list RPC-SAMR-PASSWORDS-PWDLASTSET and RPC-SAMR-USERS-PRIVILAGES as slow

13 years agos4:client Match Samba3 and remove smbmount from the distribution
Andrew Bartlett [Thu, 28 May 2009 01:44:44 +0000 (11:44 +1000)]
s4:client Match Samba3 and remove smbmount from the distribution

13 years agos4:torture Make the RPC-SAMR-PWDLASTET more efficient
Andrew Bartlett [Thu, 28 May 2009 00:42:28 +0000 (10:42 +1000)]
s4:torture Make the RPC-SAMR-PWDLASTET more efficient

By using SamLogonEx we avoid setting up the credentials chain for each
request.

(Needs to be pushed further up the stack, to only connect to NETLOGON once).

Andrew Bartlett

13 years agoFix incorrect RID for KRBTGT. (was incorectly 514, should be 502)
Andrew Bartlett [Fri, 29 May 2009 00:34:00 +0000 (10:34 +1000)]
Fix incorrect RID for KRBTGT.  (was incorectly 514, should be 502)

Requires recompile of source4/kdc/*

Found by Andrew Kroeger <andrew@id10ts.net>

Andrew Bartlett

13 years agoFix incorrect RID for KRBTGT. (was incorectly 514, should be 502)
Andrew Bartlett [Fri, 29 May 2009 00:34:00 +0000 (10:34 +1000)]
Fix incorrect RID for KRBTGT.  (was incorectly 514, should be 502)

Requires recompile of source4/kdc/*

Found by Andrew Kroeger <andrew@id10ts.net>

Andrew Bartlett

13 years agoMake cli_posix_chown()/cli_posix_chmod() async.
Jeremy Allison [Thu, 28 May 2009 23:15:09 +0000 (16:15 -0700)]
Make cli_posix_chown()/cli_posix_chmod() async.
Jeremy.

13 years agos3 onefs: update the onefs module to be compliant with stat_ex
Tim Prouty [Thu, 28 May 2009 21:11:43 +0000 (14:11 -0700)]
s3 onefs: update the onefs module to be compliant with stat_ex

13 years agos3: Fix a few more users of stat to use stat_ex
Tim Prouty [Thu, 28 May 2009 21:11:17 +0000 (14:11 -0700)]
s3: Fix a few more users of stat to use stat_ex

13 years agos3 tdbtorture: Fix linking issue
Tim Prouty [Thu, 28 May 2009 20:34:28 +0000 (13:34 -0700)]
s3 tdbtorture: Fix linking issue

tdbtorture now calls the tdb transaction code and needs to link it appropriately

13 years agoMake cli_posix_stat() async.
Jeremy Allison [Thu, 28 May 2009 20:32:00 +0000 (13:32 -0700)]
Make cli_posix_stat() async.
Jeremy.

13 years agos3/auth map NULL domains to our global sam name
Steven Danneman [Thu, 28 May 2009 00:14:49 +0000 (17:14 -0700)]
s3/auth map NULL domains to our global sam name

This is an addendum to d8c54fdd, which made make_user_info_map() match
Windows behavior by mapping untrusted domains given to smbd on the wire
with the users credentials to smbd's global sam name.

This fix was being circumvented in the case where the client passed
a NULL domain.  Vista clients do this.  In that case smbd was always
remapping the name to the machine workgroup.  The NULL domain case
should also be mapped to the global sam name.

Removing the code in this patch, causes us to fall down to the logic
added in d8c54fdd and properly map the domain.

13 years agoMake getfacl async.
Jeremy Allison [Thu, 28 May 2009 20:05:50 +0000 (13:05 -0700)]
Make getfacl async.
Jeremy.

13 years agos3: fix building of pam_smbpass.
Bo Yang [Fri, 29 May 2009 08:10:19 +0000 (16:10 +0800)]
s3: fix building of pam_smbpass.

Signed-off-by: Bo Yang <boyang@samba.org>
13 years agos3-winbindd: fix remaining callers of sid_binstring().
Günther Deschner [Thu, 28 May 2009 13:32:55 +0000 (15:32 +0200)]
s3-winbindd: fix remaining callers of sid_binstring().

Guenther

13 years agoFix some nonempty blank lines
Volker Lendecke [Thu, 28 May 2009 12:09:44 +0000 (14:09 +0200)]
Fix some nonempty blank lines

13 years agos3:nmbd: fix typo
Björn Jacke [Wed, 27 May 2009 22:25:48 +0000 (00:25 +0200)]
s3:nmbd: fix typo

13 years agonss_wrapper: fix nss_wrapper build for solaris.
Günther Deschner [Thu, 28 May 2009 09:51:46 +0000 (11:51 +0200)]
nss_wrapper: fix nss_wrapper build for solaris.

Guenther

13 years agonss_wrapper: remove re-structuring leftovers (unused variables).
Günther Deschner [Thu, 28 May 2009 08:53:53 +0000 (10:53 +0200)]
nss_wrapper: remove re-structuring leftovers (unused variables).

Guenther

13 years agoMake sid_binstring & friends take a talloc context
Volker Lendecke [Thu, 28 May 2009 09:18:22 +0000 (11:18 +0200)]
Make sid_binstring & friends take a talloc context

13 years agoTALLOC_ZERO_P->talloc_zero
Volker Lendecke [Wed, 27 May 2009 16:40:31 +0000 (18:40 +0200)]
TALLOC_ZERO_P->talloc_zero

13 years agoDo not segfault in pdb_search_destructor if no real search was started
Volker Lendecke [Wed, 27 May 2009 16:40:13 +0000 (18:40 +0200)]
Do not segfault in pdb_search_destructor if no real search was started

13 years agoAdd smbldap_pull_sid
Volker Lendecke [Wed, 27 May 2009 23:02:40 +0000 (01:02 +0200)]
Add smbldap_pull_sid

13 years agos3-selftest: use nss_wrapper.pl as "add user to group" and "delete user from group...
Günther Deschner [Thu, 28 May 2009 08:40:22 +0000 (10:40 +0200)]
s3-selftest: use nss_wrapper.pl as "add user to group" and "delete user from group" script.

Guenther

13 years agonss_wrapper: support member add and delete for groups in nss_wrapper.pl.
Günther Deschner [Thu, 28 May 2009 08:39:37 +0000 (10:39 +0200)]
nss_wrapper: support member add and delete for groups in nss_wrapper.pl.

Guenther

13 years agonss_wrapper: split out passwd and group paths in nss_wrapper.pl.
Günther Deschner [Wed, 27 May 2009 20:35:14 +0000 (22:35 +0200)]
nss_wrapper: split out passwd and group paths in nss_wrapper.pl.

Guenther

13 years agonss_wrapper: restructure nwrap calls.
Günther Deschner [Wed, 27 May 2009 16:38:10 +0000 (18:38 +0200)]
nss_wrapper: restructure nwrap calls.

Guenther

13 years agoAdd a smbclient "readlink" command and add docs for it.
Jeremy Allison [Thu, 28 May 2009 05:02:20 +0000 (22:02 -0700)]
Add a smbclient "readlink" command and add docs for it.
Jeremy.

13 years agoAdd cli_posix_readlink() and a torture test for it.
Jeremy Allison [Thu, 28 May 2009 04:51:15 +0000 (21:51 -0700)]
Add cli_posix_readlink() and a torture test for it.
Jeremy.

13 years agoAdd aync POSIX hardlink and symlink and torture test for them.
Jeremy Allison [Thu, 28 May 2009 00:28:23 +0000 (17:28 -0700)]
Add aync POSIX hardlink and symlink and torture test for them.
Missing call cli_readlink() is next.
Jeremy.

13 years agos3:idmap_ldap: filter out of range mappings in default idmap config
Michael Adam [Wed, 27 May 2009 17:25:44 +0000 (19:25 +0200)]
s3:idmap_ldap: filter out of range mappings in default idmap config

This fixes bug #6417

Michael

13 years agotdb: Fix some recently introduced warnings in tdbtool
Tim Prouty [Wed, 27 May 2009 19:52:37 +0000 (12:52 -0700)]
tdb: Fix some recently introduced warnings in tdbtool

13 years agos3: Allow child processes to exit gracefully if we are out of fds
Marc VanHeyningen [Tue, 5 May 2009 21:18:50 +0000 (21:18 +0000)]
s3: Allow child processes to exit gracefully if we are out of fds

When we run out of file descriptors for some reason, every new
connection forks a child that immediately panics causing smbd to
coredump.  This seems unnecessarily harsh; with this code change we
now catch that error and merely log a message about it and exit
without the core dump.

Signed-off-by: Tim Prouty <tprouty@samba.org>
13 years agos3: zero an uninitialized array
Marc VanHeyningen [Tue, 5 May 2009 22:07:40 +0000 (22:07 +0000)]
s3: zero an uninitialized array

Invalid pointers were being dereferenced in lookup_sids causing
occasional seg faults.

Signed-off-by: Tim Prouty <tprouty@samba.org>
13 years agos3:idmap: fix a comment typo
Michael Adam [Wed, 27 May 2009 17:26:32 +0000 (19:26 +0200)]
s3:idmap: fix a comment typo

Michael

13 years agos3:idmap_tdb2: filter out of range mappings in default idmap config
Michael Adam [Wed, 27 May 2009 17:24:03 +0000 (19:24 +0200)]
s3:idmap_tdb2: filter out of range mappings in default idmap config

This fixes bug #6416

Michael

13 years agos3:idmap_tdb: add an entry debug statment to idmap_tdb_db_init()
Michael Adam [Wed, 27 May 2009 17:14:10 +0000 (19:14 +0200)]
s3:idmap_tdb: add an entry debug statment to idmap_tdb_db_init()

Michael

13 years agos3:idmap_tdb: filter out of range mappings in default idmap config
Michael Adam [Wed, 27 May 2009 17:12:28 +0000 (19:12 +0200)]
s3:idmap_tdb: filter out of range mappings in default idmap config

This fixes bug #6415

Michael

13 years agos3/docs: Correct version number.
Karolin Seeger [Wed, 27 May 2009 16:14:17 +0000 (18:14 +0200)]
s3/docs: Correct version number.

Karolin

13 years agoRevert "s3/docs: Fix build."
Karolin Seeger [Wed, 27 May 2009 14:04:11 +0000 (16:04 +0200)]
Revert "s3/docs: Fix build."

This reverts commit 84998cb85e59a92178d916f4e485c08fb826b838.

Actually, the "fix" breaks the build.
Works after 'make clean'. Sorry!

13 years agos3/docs: Fix build.
Karolin Seeger [Wed, 27 May 2009 13:52:23 +0000 (15:52 +0200)]
s3/docs: Fix build.

$(DBLATEX) was empty.

Please check!

Karolin

13 years agoModified SamDB to accept options like Ldb.
Nadezhda Ivanova [Wed, 27 May 2009 10:49:51 +0000 (13:49 +0300)]
Modified SamDB to accept options like Ldb.

13 years agos3: update manpage as to the new passdb backend default
Björn Jacke [Wed, 27 May 2009 10:01:21 +0000 (12:01 +0200)]
s3: update manpage as to the new passdb backend default

13 years agos3: make passdb backend defaults to tdbsam
Björn Jacke [Mon, 25 May 2009 12:55:04 +0000 (14:55 +0200)]
s3: make passdb backend defaults to tdbsam

13 years agoFix the build of nfs4_acls.c
Volker Lendecke [Sun, 24 May 2009 20:17:58 +0000 (22:17 +0200)]
Fix the build of nfs4_acls.c

13 years agoFix a size_t/int warning
Volker Lendecke [Sun, 24 May 2009 20:16:34 +0000 (22:16 +0200)]
Fix a size_t/int warning

13 years agoFix some nonempty blank lines
Volker Lendecke [Sun, 24 May 2009 19:46:53 +0000 (21:46 +0200)]
Fix some nonempty blank lines

13 years agoGna, how long do I program in C now??? :-)
Volker Lendecke [Wed, 27 May 2009 06:09:23 +0000 (08:09 +0200)]
Gna, how long do I program in C now??? :-)

13 years agoDetect missing 'witch' before detecting missing autoconf
Andrew Bartlett [Mon, 18 May 2009 05:56:31 +0000 (15:56 +1000)]
Detect missing 'witch' before detecting missing autoconf

13 years agos3/docs Add manpage for "map untrusted to domain" parameter
Steven Danneman [Fri, 22 May 2009 23:57:52 +0000 (16:57 -0700)]
s3/docs Add manpage for "map untrusted to domain" parameter

This fixes bug 6352.

13 years agoHandle the krbtgt special case by looking for RID -514
Andrew Bartlett [Tue, 26 May 2009 03:09:57 +0000 (13:09 +1000)]
Handle the krbtgt special case by looking for RID -514

It turns out (seen in MS-SAMR 3.1.1.7.1 for example) that the primary
way the krbtgt account is recognised as special is that RID.  This
should fix issues such as 'password expired' on the kpasswd service.

Andrew Bartlett

13 years agoAdd DOMAIN_RID_KRBTGT define to security.idl
Andrew Bartlett [Tue, 26 May 2009 04:43:49 +0000 (14:43 +1000)]
Add DOMAIN_RID_KRBTGT define to security.idl

13 years agos4:tevent: Increase trace debug level to 50.
Andrew Kroeger [Sun, 24 May 2009 06:48:49 +0000 (01:48 -0500)]
s4:tevent: Increase trace debug level to 50.

The sheer volume of messages generated by tevent when the trace level is set to
10 makes it difficult to debug issues in a level 10 log.  Increasing this to
50 allows tevent tracing to be enabled if needed, but otherwise keeps the extra
chatter out of a level 10 log.

13 years agoAttempt to fix the build on HP/UX
Volker Lendecke [Tue, 26 May 2009 21:37:14 +0000 (23:37 +0200)]
Attempt to fix the build on HP/UX

13 years agoAttempt to fix the build on NetBSD
Volker Lendecke [Tue, 26 May 2009 20:39:50 +0000 (22:39 +0200)]
Attempt to fix the build on NetBSD

13 years agoRevert "s3: fix build on systems with struct stat member st_flags"
Björn Jacke [Tue, 26 May 2009 21:19:00 +0000 (23:19 +0200)]
Revert "s3: fix build on systems with struct stat member st_flags"

for a cleaner and more complete patch that Volker has in the queue :-)

13 years agos3: fix build on systems with struct stat member st_flags
Björn Jacke [Tue, 26 May 2009 20:37:17 +0000 (22:37 +0200)]
s3: fix build on systems with struct stat member st_flags

13 years agos4:ldb_modules: Correct typos.
Andrew Kroeger [Sun, 24 May 2009 22:40:57 +0000 (17:40 -0500)]
s4:ldb_modules: Correct typos.

13 years agos4:ldb:modules: Correct typos.
Andrew Kroeger [Tue, 26 May 2009 20:22:13 +0000 (15:22 -0500)]
s4:ldb:modules: Correct typos.

13 years agoFix some nonempty blank lines
Volker Lendecke [Tue, 26 May 2009 19:07:08 +0000 (21:07 +0200)]
Fix some nonempty blank lines

13 years agoIntroduce "struct stat_ex" as a replacement for SMB_STRUCT_STAT
Volker Lendecke [Thu, 14 May 2009 13:34:42 +0000 (15:34 +0200)]
Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STAT

This patch introduces

struct stat_ex {
        dev_t           st_ex_dev;
        ino_t           st_ex_ino;
        mode_t          st_ex_mode;
        nlink_t         st_ex_nlink;
        uid_t           st_ex_uid;
        gid_t           st_ex_gid;
        dev_t           st_ex_rdev;
        off_t           st_ex_size;
        struct timespec st_ex_atime;
        struct timespec st_ex_mtime;
        struct timespec st_ex_ctime;
        struct timespec st_ex_btime; /* birthtime */
        blksize_t       st_ex_blksize;
        blkcnt_t        st_ex_blocks;
};
typedef struct stat_ex SMB_STRUCT_STAT;

It is really large because due to the friendly libc headers playing macro
tricks with fields like st_ino, so I renamed them to st_ex_xxx.

Why this change? To support birthtime, we already have quite a few #ifdef's at
places where it does not really belong. With a stat struct that we control, we
can consolidate the nanosecond timestamps and the birthtime deep in the VFS
stat calls.

At this moment it is triggered by a request to support the birthtime field for
GPFS. GPFS does not extend the system level struct stat, but instead has a
separate call that gets us the additional information beyond posix. Without
being able to do that within the VFS stat calls, that support would have to be
scattered around the main smbd code.

It will very likely break all the onefs modules, but I think the changes will
be reasonably easy to do.

13 years agos3:smbd: remove unused global 'orig_inbuf'
Stefan Metzmacher [Tue, 26 May 2009 13:30:39 +0000 (15:30 +0200)]
s3:smbd: remove unused global 'orig_inbuf'

metze

13 years agos3:pam_smbpass: don't call openlog() or closelog() from pam_smbpass
Björn Jacke [Tue, 26 May 2009 13:40:21 +0000 (15:40 +0200)]
s3:pam_smbpass: don't call openlog() or closelog() from pam_smbpass

Patch from Steve Langasek with tiny fixes by me to make it apply to master.
Also see Debian bug #434372 and bugzilla #4831.

Calling openlog() or closelog() inside a pam module is not good as these
functions are not stackable and no program won't re-do openlog() just because a
pam module might have called closelog().

13 years agogitignore: Ignore additional auto-generated files.
Andrew Kroeger [Mon, 25 May 2009 19:46:08 +0000 (14:46 -0500)]
gitignore: Ignore additional auto-generated files.

Corrected path to tdr_proto.h and added librpc/gen_ndr/{cli,srv}_dcerpc.[ch].

13 years agos3/docs: Fix typo in man idmap_rid.
Karolin Seeger [Tue, 26 May 2009 12:16:10 +0000 (14:16 +0200)]
s3/docs: Fix typo in man idmap_rid.

Karolin

13 years agos3:smbd: move SMB1 specific stuff into a substructure of smbd_server_connection
Stefan Metzmacher [Tue, 26 May 2009 08:48:12 +0000 (10:48 +0200)]
s3:smbd: move SMB1 specific stuff into a substructure of smbd_server_connection

metze

13 years agos3:smbd: add support for SMB2 signing
Stefan Metzmacher [Fri, 22 May 2009 20:58:39 +0000 (22:58 +0200)]
s3:smbd: add support for SMB2 signing

metze

13 years agos3:smbd: return the correct security mode and capabilities in SMB2 Negotitate
Stefan Metzmacher [Fri, 22 May 2009 19:26:03 +0000 (21:26 +0200)]
s3:smbd: return the correct security mode and capabilities in SMB2 Negotitate

metze