nivanova/samba.git
14 years agos3/winbind_ccache: Fix typo in debug message.
Karolin Seeger [Thu, 28 Jan 2010 14:10:54 +0000 (15:10 +0100)]
s3/winbind_ccache: Fix typo in debug message.

Karolin

14 years agotsocket: Fix the description of tstream_writev_queue_send/recv
Kai Blin [Thu, 28 Jan 2010 10:16:24 +0000 (11:16 +0100)]
tsocket: Fix the description of tstream_writev_queue_send/recv

14 years agotsocket: Fix description for tstream_readv_pdu_queue_send/recv
Kai Blin [Thu, 28 Jan 2010 10:11:33 +0000 (11:11 +0100)]
tsocket: Fix description for tstream_readv_pdu_queue_send/recv

14 years agos4-ldbtest: fixed python import
Andrew Tridgell [Thu, 28 Jan 2010 07:02:39 +0000 (18:02 +1100)]
s4-ldbtest: fixed python import

14 years agos4-drs: implementation of some delete test cases
Eduardo Lima [Mon, 18 Jan 2010 17:03:48 +0000 (15:03 -0200)]
s4-drs: implementation of some delete test cases

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agocleanup: remove trailing spaces and tabs
Simo Sorce [Thu, 28 Jan 2010 07:05:05 +0000 (02:05 -0500)]
cleanup: remove trailing spaces and tabs

14 years agos4-drs: Reads uSNUrgent and sets Urgent Replication Bit for DS_ReplicaSync when necessary
Fernando J V da Silva [Thu, 21 Jan 2010 11:20:44 +0000 (09:20 -0200)]
s4-drs: Reads uSNUrgent and sets Urgent Replication Bit for DS_ReplicaSync when necessary

If an urgent replication is necessary, so the uSNUrgent stored is equal to the
uSNHighest stored, then when sending the DS_ReplicaSync message it sets the
DRSUAPI_DRS_SYNC_URGENT bit on DRS_OPTIONS.

Signed-off-by: Fernando J V da Silva <fernandojvsilva@yahoo.com.br>
Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agoSecond part of fix for bug #7072 - Accounts can't be unlocked from ldap.
Jeremy Allison [Thu, 28 Jan 2010 00:52:40 +0000 (16:52 -0800)]
Second part of fix for bug #7072 - Accounts can't be unlocked from ldap.

Missed read of entry_timestamp (was entry->entry_timestamp).

Jeremy.

14 years agoFix bug #7072 - Accounts can't be unlocked from ldap.
Jeremy Allison [Thu, 28 Jan 2010 00:42:06 +0000 (16:42 -0800)]
Fix bug #7072 - Accounts can't be unlocked from ldap.

Fix suggested by Andy Hanton <andyhanton@gmail.com>. The LOGIN_CACHE
struct contains two time_t entries, but was being written to and
read from via tdb_pack/tdb_unpack functions using explicit 32-bit int specifiers.
This would break on machines with a 64-bit time_t. Use correct int
sizes for tdb_pack/tdb_unpack.

We have to fix this properly before 2037 :-).

Jeremy.

14 years agotestsuite/libsmbclient use source3 in the path of the C and LFLAGS
Lars Müller [Wed, 27 Jan 2010 23:40:39 +0000 (00:40 +0100)]
testsuite/libsmbclient use source3 in the path of the C and LFLAGS

14 years agoLink testsuite/libsmbclient against required libtdb and libwbclient
Lars Müller [Wed, 27 Jan 2010 23:38:04 +0000 (00:38 +0100)]
Link testsuite/libsmbclient against required libtdb and libwbclient

14 years agos3: syntax fix
Björn Jacke [Wed, 27 Jan 2010 22:43:23 +0000 (23:43 +0100)]
s3: syntax fix

14 years agos3: Install and uninstall the static version of libwbclient
Lars Müller [Wed, 27 Jan 2010 21:40:19 +0000 (22:40 +0100)]
s3: Install and uninstall the static version of libwbclient

This requires to call configure with --enable-static which isn't the case
by default.

14 years agos4:windc move windc plugin in its own file
Simo Sorce [Tue, 26 Jan 2010 16:56:16 +0000 (11:56 -0500)]
s4:windc move windc plugin in its own file

Keep all heimdal related plugin code within wdc-samba4.c
Leave only interfaces common to multiple plugins in pac-glue.c

14 years agos4:PAC make common functions public
Simo Sorce [Tue, 26 Jan 2010 16:43:54 +0000 (11:43 -0500)]
s4:PAC make common functions public

14 years agos4:PAC Streamline pac-glue step 2
Simo Sorce [Tue, 26 Jan 2010 16:09:32 +0000 (11:09 -0500)]
s4:PAC Streamline pac-glue step 2

Split functions so that no assumption is made about which plugin
is using them

14 years agos4:PAC Streamline pac-glue
Simo Sorce [Tue, 26 Jan 2010 16:06:00 +0000 (11:06 -0500)]
s4:PAC Streamline pac-glue

First step, preparing to share the code between multiple plugins.

14 years agos3: get pthread detection also on HP-UX right
Björn Jacke [Wed, 27 Jan 2010 17:54:55 +0000 (18:54 +0100)]
s3: get pthread detection also on HP-UX right

14 years agoImplemented net fsmo command for transferring fsmo roles
Nadezhda Ivanova [Wed, 27 Jan 2010 15:57:37 +0000 (17:57 +0200)]
Implemented net fsmo command for transferring fsmo roles

The command allows the user to transfer a fsmo role to the server to which
the connection is established. Roles can be transferred or seized. By default a
transfer is attempted even if seize option is chosen, as it is dangerous to
seize a role if the current owner is still running.
example use:
net fsmo show --host=hostnameoraddress --username=username --password=password
net fsmo transfer --role=role --host=hostnameoraddress --username=username --password=password
net fsmo seize --role=role --host=hostnameoraddress --username=username --password=password [--force]

Tested against Win2008. Does not work for samba 4 yet as we are missing the GetNCChanges extensions.

14 years agos4-smbtorture: pick correct last packet while checking backchannel replies in RPC...
Günther Deschner [Wed, 27 Jan 2010 14:04:00 +0000 (15:04 +0100)]
s4-smbtorture: pick correct last packet while checking backchannel replies in RPC-SPOOLSS-NOTIFY.

Guenther

14 years agos3-selftest: try to get RPC-SPOOLSS-NOTIFY running during make test on the buildfarm.
Günther Deschner [Wed, 27 Jan 2010 12:39:24 +0000 (13:39 +0100)]
s3-selftest: try to get RPC-SPOOLSS-NOTIFY running during make test on the buildfarm.

Guenther

14 years agos4:torture: refactor querying of domain info out into test_QueryDomainInfo2_level()
Michael Adam [Thu, 21 Jan 2010 23:47:42 +0000 (00:47 +0100)]
s4:torture: refactor querying of domain info out into test_QueryDomainInfo2_level()

Used in several places.

(Note: The _level suffix in the function name is just because
test_QueryDomainInfo2() already exists as an overall test for all levels.)

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:torture: create new test_SetDomainInfo_ntstatus()
Michael Adam [Thu, 21 Jan 2010 23:46:19 +0000 (00:46 +0100)]
s4:torture: create new test_SetDomainInfo_ntstatus()

for checking for SetDomainInfo giving a desired return code.

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:torture: refactor setting of domain inf out into test_SetDomainInfo()
Michael Adam [Thu, 21 Jan 2010 23:21:29 +0000 (00:21 +0100)]
s4:torture: refactor setting of domain inf out into test_SetDomainInfo()

and use it in several places.

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:torture: refactor setting account flags out into test_SetUserInfo_acct_flags()
Michael Adam [Thu, 21 Jan 2010 22:55:51 +0000 (23:55 +0100)]
s4:torture: refactor setting account flags out into test_SetUserInfo_acct_flags()

and use this in four places (enabling/disabling accounts).

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agoFix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail to respond to...
Jeremy Allison [Wed, 27 Jan 2010 00:51:57 +0000 (16:51 -0800)]
Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail to respond to a read or write.

Only works on Linux kernels 2.6.26 and above. Grants CAP_KILL capability
to allow Linux threads under different euids to send signals to each other.

Jeremy.

14 years agoAdd dependency of bin/smbfilter to libwbclient.
Lars Müller [Tue, 26 Jan 2010 21:54:15 +0000 (22:54 +0100)]
Add dependency of bin/smbfilter to libwbclient.

14 years agos4-libcli: Fixed a talloc_reference error.
Andreas Schneider [Tue, 26 Jan 2010 13:57:15 +0000 (14:57 +0100)]
s4-libcli: Fixed a talloc_reference error.

Signed-off-by: Andreas Schneider <asn@redhat.com>
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
14 years agos4:winsrepl.idl: add random interface uuid
Stefan Metzmacher [Tue, 26 Jan 2010 14:22:09 +0000 (15:22 +0100)]
s4:winsrepl.idl: add random interface uuid

This is needed to include the wrepl interface into
ndrdump.

metze

14 years agos4:smbtorture: add BASE-BENCH-HOLDOPEN
Stefan Metzmacher [Tue, 26 Jan 2010 14:20:57 +0000 (15:20 +0100)]
s4:smbtorture: add BASE-BENCH-HOLDOPEN

This is useful for manual performance testing with a large
number of share mode entries.

metze

14 years agomount.cifs: don't allow it to be run as setuid root program
Jeff Layton [Tue, 26 Jan 2010 13:15:41 +0000 (08:15 -0500)]
mount.cifs: don't allow it to be run as setuid root program

mount.cifs has been the subject of several "security" fire drills due to
distributions installing it as a setuid root program. This program has
not been properly audited for security and the Samba team highly
recommends that it not be installed as a setuid root program at this
time.

To make that abundantly clear, this patch forcibly disables the ability
for mount.cifs to run as a setuid root program. People are welcome to
trivially patch this out, but they do so at their own peril.

A security audit and redesign of this program is in progress and we hope
that we'll be able to remove this in the near future.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
14 years agomount.cifs: check for invalid characters in device name and mountpoint
Jeff Layton [Tue, 26 Jan 2010 13:15:41 +0000 (08:15 -0500)]
mount.cifs: check for invalid characters in device name and mountpoint

It's apparently possible to corrupt the mtab if you pass embedded
newlines to addmntent. Apparently tabs are also a problem with certain
earlier glibc versions. Backslashes are also a minor issue apparently,
but we can't reasonably filter those.

Make sure that neither the devname or mountpoint contain any problematic
characters before allowing the mount to proceed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
14 years agomount.cifs: take extra care that mountpoint isn't changed during mount
Jeff Layton [Tue, 26 Jan 2010 13:15:41 +0000 (08:15 -0500)]
mount.cifs: take extra care that mountpoint isn't changed during mount

It's possible to trick mount.cifs into mounting onto the wrong directory
by replacing the mountpoint with a symlink to a directory. mount.cifs
attempts to check the validity of the mountpoint, but there's still a
possible race between those checks and the mount(2) syscall.

To guard against this, chdir to the mountpoint very early, and only deal
with it as "." from then on out.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
14 years agos4-smbtorture: also test smbc_getOptionUseCCache
Günther Deschner [Tue, 26 Jan 2010 11:10:17 +0000 (12:10 +0100)]
s4-smbtorture: also test smbc_getOptionUseCCache

14 years agos3: Enable use of ccache by default for libsmbclient
Volker Lendecke [Tue, 26 Jan 2010 09:51:32 +0000 (10:51 +0100)]
s3: Enable use of ccache by default for libsmbclient

Disable this by setting the environment variable LIBSMBCLIENT_NO_CCACHE, which
has the advantage over an smb.conf option to be easily settable per
application.

14 years agoCorrect fix for unused variable return from ndr_decode. Use it :-).
Jeremy Allison [Tue, 26 Jan 2010 01:38:55 +0000 (17:38 -0800)]
Correct fix for unused variable return from ndr_decode. Use it :-).
Jeremy.

14 years agoRevert "s3: remove unused Variable"
Jeremy Allison [Tue, 26 Jan 2010 01:06:54 +0000 (17:06 -0800)]
Revert "s3: remove unused Variable"

This reverts commit 9536d94d5478b63fc05047964b40d8786a7246c4.

Bjorn, your change removed the ndr_decoding of the dos attribute.
Not a good idea :-).

Jeremy.

14 years agoRevert "libreplace: fix unused varibale warning on IRIX"
Björn Jacke [Tue, 26 Jan 2010 00:16:37 +0000 (01:16 +0100)]
Revert "libreplace: fix unused varibale warning on IRIX"

this one was broken

14 years agos3: fix detection and flags for using pthread
Björn Jacke [Mon, 25 Jan 2010 23:17:10 +0000 (00:17 +0100)]
s3: fix detection and flags for using pthread

I hope this fixes the build on Tru64, IRIX and maybe bug #6983

14 years agos3: remove unused variable
Björn Jacke [Mon, 25 Jan 2010 22:24:35 +0000 (23:24 +0100)]
s3: remove unused variable

14 years agos3:async_smb: remove unused variable
Björn Jacke [Mon, 25 Jan 2010 22:23:49 +0000 (23:23 +0100)]
s3:async_smb: remove unused variable

14 years agolibreplace: fix unused varibale warning on IRIX
Björn Jacke [Mon, 25 Jan 2010 22:07:24 +0000 (23:07 +0100)]
libreplace: fix unused varibale warning on IRIX

14 years agos3: remove unused Variable
Björn Jacke [Mon, 25 Jan 2010 22:00:14 +0000 (23:00 +0100)]
s3: remove unused Variable

Jeremy, please check!

14 years agos3:netapi: remove unused variable
Björn Jacke [Mon, 25 Jan 2010 21:57:36 +0000 (22:57 +0100)]
s3:netapi: remove unused variable

14 years agolib/popt: Fix typo in README.
Karolin Seeger [Mon, 25 Jan 2010 18:54:24 +0000 (19:54 +0100)]
lib/popt: Fix typo in README.

Karolin

14 years agos3/docs: Fix typo.
Karolin Seeger [Mon, 25 Jan 2010 18:53:42 +0000 (19:53 +0100)]
s3/docs: Fix typo.

Karolin

14 years agos3/registry: Fix typo in comment.
Karolin Seeger [Mon, 25 Jan 2010 18:50:21 +0000 (19:50 +0100)]
s3/registry: Fix typo in comment.

Karolin

14 years agoRevert "libcli/security: Remove a call to strncasecmp"
Volker Lendecke [Mon, 25 Jan 2010 15:44:38 +0000 (16:44 +0100)]
Revert "libcli/security: Remove a call to strncasecmp"

This reverts commit 7c687665eaf16b0c6f83c130f6d9e5459e0b2a32.

14 years agoRevert "libcli/security: Convert some strtol calls to strtoul"
Volker Lendecke [Mon, 25 Jan 2010 15:44:27 +0000 (16:44 +0100)]
Revert "libcli/security: Convert some strtol calls to strtoul"

This reverts commit 7fe66e06c4df575c410d4d70ff38f120c2f4363b.

14 years agoRevert "libcli/security: Fix a valgrind error in dom_sid_parse"
Volker Lendecke [Mon, 25 Jan 2010 15:42:49 +0000 (16:42 +0100)]
Revert "libcli/security: Fix a valgrind error in dom_sid_parse"

This reverts commit f1c889a4e61d6d751cbabd8014b4345b8051b97c.

14 years agos4-python: Fix formatting.
Jelmer Vernooij [Mon, 25 Jan 2010 14:17:56 +0000 (15:17 +0100)]
s4-python: Fix formatting.

14 years agoupgrade_from_s3: Remove unused imports.
Jelmer Vernooij [Thu, 21 Jan 2010 23:05:18 +0000 (12:05 +1300)]
upgrade_from_s3: Remove unused imports.

14 years agopyxattr: Move to the same directory as the xattr code.
Jelmer Vernooij [Thu, 21 Jan 2010 23:02:51 +0000 (12:02 +1300)]
pyxattr: Move to the same directory as the xattr code.

14 years agos4 includes: Include system/locale.h to get access to <ctype.h>
Kai Blin [Mon, 25 Jan 2010 11:51:35 +0000 (12:51 +0100)]
s4 includes: Include system/locale.h to get access to <ctype.h>

14 years agoRevert "s3: Make string_to_sid a wrapper around dom_sid_parse"
Volker Lendecke [Mon, 25 Jan 2010 11:41:48 +0000 (12:41 +0100)]
Revert "s3: Make string_to_sid a wrapper around dom_sid_parse"

This reverts commit dff03b61fd5d923562711b38cc7dbe996dc07283.

14 years agoRevert "libcli/security: Prohibit SID formats like S-1-5-32-+545"
Volker Lendecke [Mon, 25 Jan 2010 11:39:47 +0000 (12:39 +0100)]
Revert "libcli/security: Prohibit SID formats like S-1-5-32-+545"

This reverts commit 1fbeae41655b8305834f2149b1268077eba8633d.

Apparently this breaks the build of Samba4

14 years agos4-smbtorture: test wbcResolveWinsByName/wbcResolveWinsByIP in WINBIND-WBCLIENT tests...
Günther Deschner [Fri, 22 Jan 2010 15:27:39 +0000 (16:27 +0100)]
s4-smbtorture: test wbcResolveWinsByName/wbcResolveWinsByIP in WINBIND-WBCLIENT testsuite.

Guenther

14 years agos4-smbtorture: add test for wbcPingDc to WINBIND-WBCLIENT testsuite.
Günther Deschner [Fri, 22 Jan 2010 14:06:50 +0000 (15:06 +0100)]
s4-smbtorture: add test for wbcPingDc to WINBIND-WBCLIENT testsuite.

Volker, please check, you know best how this interface is designed :-)

Guenther

14 years agos4-smbtorture: split spoolss_RemoteFindFirstPrinterChangeNotifyEx test into smaller...
Günther Deschner [Tue, 19 Jan 2010 21:18:24 +0000 (22:18 +0100)]
s4-smbtorture: split spoolss_RemoteFindFirstPrinterChangeNotifyEx test into smaller parts.

Guenther

14 years agotestprogs: print all driver info levels in spoolss testsuite.
Günther Deschner [Tue, 19 Jan 2010 23:44:16 +0000 (00:44 +0100)]
testprogs: print all driver info levels in spoolss testsuite.

Guenther

14 years agos3-libsmbclient: Add smbc_setOptionUseCCache()
Volker Lendecke [Sun, 24 Jan 2010 18:24:10 +0000 (19:24 +0100)]
s3-libsmbclient: Add smbc_setOptionUseCCache()

Can we enable this by default? This would be a change in behaviour, but this
feature is just too cool for everyone to catch up in the apps.

The patch would be

14 years agos3: Add --use-ccache to net
Volker Lendecke [Sun, 24 Jan 2010 17:50:48 +0000 (18:50 +0100)]
s3: Add --use-ccache to net

14 years agos3: add libnetapi_set_use_ccache()
Volker Lendecke [Sun, 24 Jan 2010 17:50:31 +0000 (18:50 +0100)]
s3: add libnetapi_set_use_ccache()

14 years agos3: Fix a bug in net's use of popt
Volker Lendecke [Sun, 24 Jan 2010 17:51:58 +0000 (18:51 +0100)]
s3: Fix a bug in net's use of popt

In order to add --use-ccache to net, I added another "bool opt_ccache;" to
struct net_context. popt did not like this, it took a while to figure out why.
Popt has the lines

    /* XXX Check alignment, may fail on funky platforms. */
    if (arg == NULL || (((unsigned long)arg) & (sizeof(*arg)-1)))
        return POPT_ERROR_NULLARG;

The "bool opt_ccache;" was not aligned anymore...

14 years agos3: Enable -C in rpcclient
Volker Lendecke [Sun, 24 Jan 2010 16:35:04 +0000 (17:35 +0100)]
s3: Enable -C in rpcclient

14 years agos3: Add CLI_FULL_CONNECTION_USE_CCACHE
Volker Lendecke [Sun, 24 Jan 2010 16:34:13 +0000 (17:34 +0100)]
s3: Add CLI_FULL_CONNECTION_USE_CCACHE

14 years agos3: Use -C in smbclient
Volker Lendecke [Sun, 24 Jan 2010 16:08:56 +0000 (17:08 +0100)]
s3: Use -C in smbclient

$ bin/wbinfo --ccache-save=w2k3ad\\vl%Password
saving creds succeeded
$ bin/smbclient //192.168.42.160/tmp -Uvl -N -C -W w2k3ad
OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2]
smb: \>
$ bin/wbinfo --ccache-save=w2k3ad\\vl%WrongPassword
saving creds succeeded
$ bin/smbclient //192.168.42.160/tmp -Uvl -N -C -W w2k3ad
Anonymous login successful
Domain=[W2K3AD] OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2]
tree connect failed: NT_STATUS_ACCESS_DENIED
$

14 years agos3: Add -C (--use-ccache) to popt_common_credentials
Volker Lendecke [Sun, 24 Jan 2010 16:07:24 +0000 (17:07 +0100)]
s3: Add -C (--use-ccache) to popt_common_credentials

14 years agos3: Add ccache use to cli_session_setup_ntlmssp
Volker Lendecke [Sun, 24 Jan 2010 15:50:46 +0000 (16:50 +0100)]
s3: Add ccache use to cli_session_setup_ntlmssp

14 years agos3: Add NTLMSSP_FEATURE_CCACHE
Volker Lendecke [Sun, 24 Jan 2010 15:47:24 +0000 (16:47 +0100)]
s3: Add NTLMSSP_FEATURE_CCACHE

Uses the winbind ccache to do authentication if asked to do so

14 years agolibwbclient: Actually implement wbcCredentialCache()
Volker Lendecke [Sun, 24 Jan 2010 15:44:15 +0000 (16:44 +0100)]
libwbclient: Actually implement wbcCredentialCache()

14 years agos3: Add the session key to the ccache_ntlm_auth response
Volker Lendecke [Sun, 24 Jan 2010 15:41:30 +0000 (16:41 +0100)]
s3: Add the session key to the ccache_ntlm_auth response

14 years agos3: Add wbinfo --ccache-save
Volker Lendecke [Sat, 9 Jan 2010 19:20:36 +0000 (20:20 +0100)]
s3: Add wbinfo --ccache-save

With this command you can give winbind your password for later use by
the automatic ntlm_auth

14 years agos3: Remove some calls to memset -- reduces text size by some bytes for me
Volker Lendecke [Sun, 24 Jan 2010 12:46:59 +0000 (13:46 +0100)]
s3: Remove some calls to memset -- reduces text size by some bytes for me

14 years agolibwbclient: Use winbindd_free_response()
Volker Lendecke [Sat, 23 Jan 2010 18:38:28 +0000 (19:38 +0100)]
libwbclient: Use winbindd_free_response()

14 years agolibwbclient: Remove a pointless talloc_strdup
Volker Lendecke [Sat, 23 Jan 2010 18:26:51 +0000 (19:26 +0100)]
libwbclient: Remove a pointless talloc_strdup

14 years agos4-provision: Added msDS-NcType into samba4Top object class
Endi S. Dewata [Tue, 19 Jan 2010 03:47:24 +0000 (21:47 -0600)]
s4-provision: Added msDS-NcType into samba4Top object class

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
14 years agos4-provision: Fixed typos and redundant code
Endi S. Dewata [Tue, 19 Jan 2010 03:01:08 +0000 (21:01 -0600)]
s4-provision: Fixed typos and redundant code

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
14 years agos4-provision: Disable populating FDS during instance creation.
Endi S. Dewata [Wed, 20 Jan 2010 05:10:19 +0000 (23:10 -0600)]
s4-provision: Disable populating FDS during instance creation.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
14 years agonsswitch: Move nss_err_str to its only caller
Volker Lendecke [Sat, 23 Jan 2010 17:20:36 +0000 (18:20 +0100)]
nsswitch: Move nss_err_str to its only caller

14 years agonsswitch: Make some functions static
Volker Lendecke [Sat, 23 Jan 2010 17:06:53 +0000 (18:06 +0100)]
nsswitch: Make some functions static

14 years agos3: Make string_to_sid a wrapper around dom_sid_parse
Volker Lendecke [Sat, 23 Jan 2010 14:24:20 +0000 (15:24 +0100)]
s3: Make string_to_sid a wrapper around dom_sid_parse

14 years agos3: Add a little torture test for dom_sid_parse
Volker Lendecke [Sat, 23 Jan 2010 13:55:11 +0000 (14:55 +0100)]
s3: Add a little torture test for dom_sid_parse

14 years agolibcli/security: Prohibit SID formats like S-1-5-32-+545
Volker Lendecke [Sat, 23 Jan 2010 13:53:54 +0000 (14:53 +0100)]
libcli/security: Prohibit SID formats like S-1-5-32-+545

14 years agolibcli/security: Fix a valgrind error in dom_sid_parse
Volker Lendecke [Sat, 23 Jan 2010 12:53:48 +0000 (13:53 +0100)]
libcli/security: Fix a valgrind error in dom_sid_parse

14 years agolibcli/security: Convert some strtol calls to strtoul
Volker Lendecke [Sat, 23 Jan 2010 12:50:59 +0000 (13:50 +0100)]
libcli/security: Convert some strtol calls to strtoul

This tightens the dom_sid_parse syntax check a bit: "--" would have been
allowed in sid string

14 years agolibcli/security: Remove a call to strncasecmp
Volker Lendecke [Sat, 23 Jan 2010 12:48:49 +0000 (13:48 +0100)]
libcli/security: Remove a call to strncasecmp

14 years agolibreplace: Fix a C++ warning
Volker Lendecke [Sun, 3 Jan 2010 17:46:21 +0000 (18:46 +0100)]
libreplace: Fix a C++ warning

14 years agos3: Remove string_sid_talloc
Volker Lendecke [Sat, 23 Jan 2010 12:31:27 +0000 (13:31 +0100)]
s3: Remove string_sid_talloc

All but one call were pointless, so I think this API should go

14 years agos3: Remove a call to string_sid_talloc
Volker Lendecke [Sat, 23 Jan 2010 12:30:04 +0000 (13:30 +0100)]
s3: Remove a call to string_sid_talloc

14 years agos3: Fix sending NULL sids to lookupsids3
Volker Lendecke [Sat, 23 Jan 2010 12:26:55 +0000 (13:26 +0100)]
s3: Fix sending NULL sids to lookupsids3

14 years agos3: Remove some pointless uses of string_sid_talloc
Volker Lendecke [Sat, 23 Jan 2010 12:18:00 +0000 (13:18 +0100)]
s3: Remove some pointless uses of string_sid_talloc

14 years agos3: Use global_sid_Builtin in net_groupmap_memberships
Volker Lendecke [Sat, 23 Jan 2010 12:17:28 +0000 (13:17 +0100)]
s3: Use global_sid_Builtin in net_groupmap_memberships

14 years agos3: Fix some nonempty blank lines
Volker Lendecke [Sat, 23 Jan 2010 12:33:10 +0000 (13:33 +0100)]
s3: Fix some nonempty blank lines

14 years agos4:kdc Simplify header files
Simo Sorce [Thu, 21 Jan 2010 14:57:41 +0000 (09:57 -0500)]
s4:kdc Simplify header files

14 years agos3: Fix some nonempty blank lines
Volker Lendecke [Fri, 22 Jan 2010 12:31:44 +0000 (13:31 +0100)]
s3: Fix some nonempty blank lines

14 years agos3: Fix a typo in a comment
Volker Lendecke [Fri, 22 Jan 2010 12:31:30 +0000 (13:31 +0100)]
s3: Fix a typo in a comment

14 years agos3:pdb_ldap: Fix large paged search.
Volker Lendecke [Mon, 18 May 2009 14:04:04 +0000 (16:04 +0200)]
s3:pdb_ldap: Fix large paged search.

Fix bug #6981 (Paged Search with DirX LDAP server broken).
(cherry picked from commit 0a3b576c0a4298cbe600ad8943e401e3a0639359)

14 years agos3: Fix bug 7052: "DFS broken on AIX (maybe others)"
William Jojo [Thu, 21 Jan 2010 13:21:03 +0000 (14:21 +0100)]
s3: Fix bug 7052: "DFS broken on AIX (maybe others)"

14 years agos3: Initialize the seqnum in "init_smb_request"
Volker Lendecke [Thu, 21 Jan 2010 13:05:04 +0000 (14:05 +0100)]
s3: Initialize the seqnum in "init_smb_request"

This makes it a bit more obvious for me that the signing sequence number is
tied to the SMB request.