ira/wip.git
10 years agos4:schannel more readable check logic
Simo Sorce [Thu, 18 Feb 2010 15:26:24 +0000 (10:26 -0500)]
s4:schannel more readable check logic

Make the initial schannel check logic more understandable.
Make it easy to define different policies depending on the caller's
security requirements (Integrity/Privacy/Both/None)

This is the same change applied to s3

10 years agos3:schannel more readable check logic
Simo Sorce [Thu, 18 Feb 2010 15:19:09 +0000 (10:19 -0500)]
s3:schannel more readable check logic

Make the initial schannel check logic more understandable.
Make it easy to define different policies depending on ther caller's security
requirements (Integrity/Privacy/Both/None)

10 years agos3 move the sitename cache in its own file
Simo Sorce [Tue, 23 Feb 2010 16:11:37 +0000 (11:11 -0500)]
s3 move the sitename cache in its own file

10 years agos3: Consolidate some pid_to_procid() calls to procid_self()
Volker Lendecke [Tue, 23 Feb 2010 16:17:58 +0000 (17:17 +0100)]
s3: Consolidate some pid_to_procid() calls to procid_self()

10 years agos3: re-run make samba3-idl.
Günther Deschner [Tue, 23 Feb 2010 16:02:37 +0000 (17:02 +0100)]
s3: re-run make samba3-idl.

Guenther

10 years agospoolss: some fixes for devicemode dm extra structs.
Günther Deschner [Tue, 23 Feb 2010 16:01:26 +0000 (17:01 +0100)]
spoolss: some fixes for devicemode dm extra structs.

Guenther

10 years agos3: re-run make samba3-idl.
Günther Deschner [Mon, 10 Aug 2009 22:15:58 +0000 (00:15 +0200)]
s3: re-run make samba3-idl.

Guenther

10 years agospoolss: add various DM extradata formats (including PostScript and UniDriver).
Günther Deschner [Mon, 10 Aug 2009 22:14:55 +0000 (00:14 +0200)]
spoolss: add various DM extradata formats (including PostScript and UniDriver).

Guenther

10 years agos3:spoolss: construct the devmode the same way for level 2 and 8
Stefan Metzmacher [Fri, 19 Feb 2010 08:09:40 +0000 (09:09 +0100)]
s3:spoolss: construct the devmode the same way for level 2 and 8

metze

10 years agos3:cli_netlogon: keep the the correct negotiate_flags on the cli->dc structure
Stefan Metzmacher [Fri, 19 Feb 2010 22:22:40 +0000 (23:22 +0100)]
s3:cli_netlogon: keep the the correct negotiate_flags on the cli->dc structure

This should fix the rpccli_netlogon_set_trust_password() against DC's
without netr_ServerPasswordSet2 support.

This fixes bug #7160.

metze

10 years agos3:selftest: $WORKGROUP doesn't exist, we should use $DOMAIN
Stefan Metzmacher [Tue, 23 Feb 2010 15:12:31 +0000 (16:12 +0100)]
s3:selftest: $WORKGROUP doesn't exist, we should use $DOMAIN

metze

10 years agos3: Consolidate server_id_self into the equivalent procid_self()
Volker Lendecke [Tue, 23 Feb 2010 14:04:10 +0000 (15:04 +0100)]
s3: Consolidate server_id_self into the equivalent procid_self()

10 years agos3: add explicit configure option whether or not to enable dmapi support
Björn Jacke [Tue, 23 Feb 2010 14:23:27 +0000 (15:23 +0100)]
s3: add explicit configure option whether or not to enable dmapi support

10 years agotstream: Added a typedef for the function prototype.
Andreas Schneider [Tue, 16 Feb 2010 10:23:58 +0000 (11:23 +0100)]
tstream: Added a typedef for the function prototype.

10 years agos4-smb: Migrate named_pipe_server to tsocket.
Andreas Schneider [Thu, 4 Feb 2010 16:03:04 +0000 (17:03 +0100)]
s4-smb: Migrate named_pipe_server to tsocket.

10 years agos4-selftest: disable rndc and dns update in build farm
Andrew Tridgell [Wed, 17 Feb 2010 20:41:40 +0000 (07:41 +1100)]
s4-selftest: disable rndc and dns update in build farm

10 years agos4-dns: improved logging, and run name check at startup
Andrew Tridgell [Wed, 17 Feb 2010 11:20:18 +0000 (22:20 +1100)]
s4-dns: improved logging, and run name check at startup

10 years agos4-pyglue: added interface_ips() call
Andrew Tridgell [Wed, 17 Feb 2010 11:19:57 +0000 (22:19 +1100)]
s4-pyglue: added interface_ips() call

This allows a python script to query the internal network interface
lists from Samba

10 years agos4-dns: call out to the dns update command every 10 minutes
Andrew Tridgell [Wed, 17 Feb 2010 10:15:08 +0000 (21:15 +1100)]
s4-dns: call out to the dns update command every 10 minutes

This periodically calls samba_dnsupdate to update our DNS entries if
needed

10 years agos4-param: added "dns update command" smb.conf option
Andrew Tridgell [Wed, 17 Feb 2010 10:14:10 +0000 (21:14 +1100)]
s4-param: added "dns update command" smb.conf option

defaults to SBINDIR/samba_dnsupdate

This command will do periodic dynamic DNS updates using TSIG-GSS

10 years agos4-config: add dyn_SBINDIR
Andrew Tridgell [Wed, 17 Feb 2010 10:12:17 +0000 (21:12 +1100)]
s4-config: add dyn_SBINDIR

10 years agolibreplace: Remove the obsolete signal type cast.
Andreas Schneider [Fri, 19 Feb 2010 10:27:56 +0000 (11:27 +0100)]
libreplace: Remove the obsolete signal type cast.

AC_SIGNAL_TYPE is already obsolete in autoconf. C89 requires signal
handlers to return void, only K&R returned int.

10 years agolibutil: Remove obsolete signal type cast.
Andreas Schneider [Fri, 19 Feb 2010 11:44:07 +0000 (12:44 +0100)]
libutil: Remove obsolete signal type cast.

10 years agos4-smbd: Remove obsolete singal type cast from the thread process model.
Andreas Schneider [Fri, 19 Feb 2010 11:49:08 +0000 (12:49 +0100)]
s4-smbd: Remove obsolete singal type cast from the thread process model.

10 years agos3-smb: Remove the obsolete signal type cast.
Andreas Schneider [Fri, 19 Feb 2010 14:33:40 +0000 (15:33 +0100)]
s3-smb: Remove the obsolete signal type cast.

AC_SIGNAL_TYPE is already obsolete in autoconf. C89 requires signal
handlers to return void, only K&R returned int.

10 years agos3-lib: Remove obsolete signal type cast.
Andreas Schneider [Fri, 19 Feb 2010 14:32:45 +0000 (15:32 +0100)]
s3-lib: Remove obsolete signal type cast.

10 years agos3-libads: Remove obsolete signal type cast.
Andreas Schneider [Fri, 19 Feb 2010 14:29:47 +0000 (15:29 +0100)]
s3-libads: Remove obsolete signal type cast.

10 years agos3-nmbd: Remove obsolete signal type cast.
Andreas Schneider [Fri, 19 Feb 2010 14:28:11 +0000 (15:28 +0100)]
s3-nmbd: Remove obsolete signal type cast.

10 years agos3-pam_smbpass: Remove obsolete signal type cast.
Andreas Schneider [Fri, 19 Feb 2010 14:25:09 +0000 (15:25 +0100)]
s3-pam_smbpass: Remove obsolete signal type cast.

10 years agos3-passdb: Remove obsolete signal type cast.
Andreas Schneider [Fri, 19 Feb 2010 15:14:47 +0000 (16:14 +0100)]
s3-passdb: Remove obsolete signal type cast.

10 years agos3-print: Remove obsolete signal type cast.
Andreas Schneider [Fri, 19 Feb 2010 15:13:46 +0000 (16:13 +0100)]
s3-print: Remove obsolete signal type cast.

10 years agos3:winbindd: never mark external domains as internal!
Stefan Metzmacher [Tue, 23 Feb 2010 07:42:41 +0000 (08:42 +0100)]
s3:winbindd: never mark external domains as internal!

This way we can endup with silently using builtin_passdb_methods
for an ad domain without an inbound trust.

This fixes bug #7170.

metze

10 years agos4:netlogon RPC - fix the indentation
Matthias Dieter Wallnöfer [Tue, 23 Feb 2010 08:51:25 +0000 (09:51 +0100)]
s4:netlogon RPC - fix the indentation

Simo, I'm not really sure that those checks are valid. I read MS-NRPC section
3.5.4.1 about LOGONSRV_HANDLEs ("server_name" is of this type). There isn't
stated that the server name has necessarily to be in the DNS form and should
also be valid when it's NULL (if DCE server and client are the same - I don't
know if me make use of it in s4).

10 years agos3 Fix the build
Simo Sorce [Tue, 23 Feb 2010 02:18:07 +0000 (21:18 -0500)]
s3 Fix the build

I didn't mean to puch the GetForestTrustInformation patch just yet,
now that it is in fix the s3 build ...

10 years agos4:netlogon GetTrustedDomainInformation
Simo Sorce [Mon, 22 Feb 2010 18:15:44 +0000 (13:15 -0500)]
s4:netlogon GetTrustedDomainInformation

start implementing calls related to trusted domain information

10 years agos4:netlogon fix segfault
Simo Sorce [Mon, 22 Feb 2010 23:47:34 +0000 (18:47 -0500)]
s4:netlogon fix segfault

10 years agoldb:web Fix typo
Simo Sorce [Mon, 22 Feb 2010 20:01:16 +0000 (15:01 -0500)]
ldb:web Fix typo

10 years agoA test "store create time" parameter got commited by accident. Remove it.
Jeremy Allison [Mon, 22 Feb 2010 23:34:15 +0000 (15:34 -0800)]
A test "store create time" parameter got commited by accident. Remove it.
Jeremy.

10 years agoEnsure STREAMERROR deletes any files in the \\testdir
Jeremy Allison [Mon, 22 Feb 2010 23:04:10 +0000 (15:04 -0800)]
Ensure STREAMERROR deletes any files in the \\testdir
before rmdir and mkdir.
Jeremy.

10 years agoAdd an "attributes" string to allinfo.
Jeremy Allison [Mon, 22 Feb 2010 22:36:40 +0000 (14:36 -0800)]
Add an "attributes" string to allinfo.
Jeremy.

10 years agos3: Explicitly handle inbuf in cli_trans_done
Volker Lendecke [Sat, 20 Feb 2010 14:27:48 +0000 (15:27 +0100)]
s3: Explicitly handle inbuf in cli_trans_done

10 years agos3: Explicitly handle inbuf in cli_write_andx_done
Volker Lendecke [Sat, 20 Feb 2010 14:27:22 +0000 (15:27 +0100)]
s3: Explicitly handle inbuf in cli_write_andx_done

10 years agos3: Explicitly handle inbuf in cli_read_andx_done
Volker Lendecke [Sat, 20 Feb 2010 14:26:06 +0000 (15:26 +0100)]
s3: Explicitly handle inbuf in cli_read_andx_done

10 years agos3: Explicitly handle inbuf in cli_message_start_done
Volker Lendecke [Sat, 20 Feb 2010 14:25:34 +0000 (15:25 +0100)]
s3: Explicitly handle inbuf in cli_message_start_done

10 years agos3: Explicitly handle inbuf in cli_dskattr_done
Volker Lendecke [Sat, 20 Feb 2010 14:23:31 +0000 (15:23 +0100)]
s3: Explicitly handle inbuf in cli_dskattr_done

10 years agos3: Explicitly handle inbuf in cli_getatr_done
Volker Lendecke [Sat, 20 Feb 2010 14:21:01 +0000 (15:21 +0100)]
s3: Explicitly handle inbuf in cli_getatr_done

10 years agos3: Explicitly handle inbuf in cli_getattrE_done
Volker Lendecke [Sat, 20 Feb 2010 14:20:38 +0000 (15:20 +0100)]
s3: Explicitly handle inbuf in cli_getattrE_done

10 years agos3: Explicitly handle inbuf in cli_open_done
Volker Lendecke [Sat, 20 Feb 2010 14:19:45 +0000 (15:19 +0100)]
s3: Explicitly handle inbuf in cli_open_done

10 years agos3: Explicitly handle inbuf in cli_ntcreate_done
Volker Lendecke [Sat, 20 Feb 2010 14:19:28 +0000 (15:19 +0100)]
s3: Explicitly handle inbuf in cli_ntcreate_done

10 years agos3: Explicitly handle inbuf in cli_echo_done
Volker Lendecke [Sat, 20 Feb 2010 14:18:38 +0000 (15:18 +0100)]
s3: Explicitly handle inbuf in cli_echo_done

10 years agos3: Explicitly handle inbuf in cli_negprot_done
Volker Lendecke [Sat, 20 Feb 2010 14:17:29 +0000 (15:17 +0100)]
s3: Explicitly handle inbuf in cli_negprot_done

10 years agos3: Explicitly handle inbuf in cli_tcon_andx_done
Volker Lendecke [Sat, 20 Feb 2010 14:16:55 +0000 (15:16 +0100)]
s3: Explicitly handle inbuf in cli_tcon_andx_done

10 years agos3: Explicitly handle inbuf in cli_sesssetup_blob_done
Volker Lendecke [Sat, 20 Feb 2010 14:15:28 +0000 (15:15 +0100)]
s3: Explicitly handle inbuf in cli_sesssetup_blob_done

10 years agos3: Explicitly handle inbuf in cli_session_setup_guest_done
Volker Lendecke [Sat, 20 Feb 2010 14:14:43 +0000 (15:14 +0100)]
s3: Explicitly handle inbuf in cli_session_setup_guest_done

10 years agos3: Explicitly handle inbuf in cli_smb_oplock_break_waiter_done
Volker Lendecke [Sat, 20 Feb 2010 10:50:05 +0000 (11:50 +0100)]
s3: Explicitly handle inbuf in cli_smb_oplock_break_waiter_done

10 years agos3: Add a talloc_move for the inbuf to cli_smb_recv
Volker Lendecke [Sat, 20 Feb 2010 08:53:58 +0000 (09:53 +0100)]
s3: Add a talloc_move for the inbuf to cli_smb_recv

10 years agos4:registry/regf.c - specify the context when freeing the "regf" variable
Matthias Dieter Wallnöfer [Mon, 22 Feb 2010 21:15:03 +0000 (22:15 +0100)]
s4:registry/regf.c - specify the context when freeing the "regf" variable

Otherwise we get a "talloc_free with references" warning.

10 years agoMore spelling fixes across source4/
Brad Hards [Sun, 21 Feb 2010 06:46:46 +0000 (17:46 +1100)]
More spelling fixes across source4/

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoVarious source4 spelling fixes.
Brad Hards [Sun, 21 Feb 2010 06:35:11 +0000 (17:35 +1100)]
Various source4 spelling fixes.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for source4/auth.
Brad Hards [Sun, 21 Feb 2010 06:33:28 +0000 (17:33 +1100)]
Spelling fixes for source4/auth.

The comment for USER_INFO_INTERACTIVE_LOGON looks like a cut-n-paste from the line above.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for source4/lib/registry.
Brad Hards [Sun, 21 Feb 2010 06:24:08 +0000 (17:24 +1100)]
Spelling fixes for source4/lib/registry.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoTypo fix.
Brad Hards [Sun, 21 Feb 2010 06:23:15 +0000 (17:23 +1100)]
Typo fix.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoLDB related spelling fixes.
Brad Hards [Sun, 21 Feb 2010 06:22:45 +0000 (17:22 +1100)]
LDB related spelling fixes.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for libutil
Brad Hards [Sun, 21 Feb 2010 05:58:07 +0000 (16:58 +1100)]
Spelling fixes for libutil

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes in lib/zlib.
Brad Hards [Sun, 21 Feb 2010 05:51:01 +0000 (16:51 +1100)]
Spelling fixes in lib/zlib.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for libreplace.
Brad Hards [Sun, 21 Feb 2010 05:35:10 +0000 (16:35 +1100)]
Spelling fixes for libreplace.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for tsocket API documentation.
Brad Hards [Sun, 21 Feb 2010 05:34:22 +0000 (16:34 +1100)]
Spelling fixes for tsocket API documentation.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for lib/compression.
Brad Hards [Sun, 21 Feb 2010 05:33:24 +0000 (16:33 +1100)]
Spelling fixes for lib/compression.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for nss_wrapper.
Brad Hards [Sun, 21 Feb 2010 05:32:29 +0000 (16:32 +1100)]
Spelling fixes for nss_wrapper.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for popt API documentation.
Brad Hards [Sun, 21 Feb 2010 05:31:46 +0000 (16:31 +1100)]
Spelling fixes for popt API documentation.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for tevent.
Brad Hards [Sun, 21 Feb 2010 05:31:01 +0000 (16:31 +1100)]
Spelling fixes for tevent.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agoSpelling fixes for tdb.
Brad Hards [Sun, 21 Feb 2010 05:07:43 +0000 (16:07 +1100)]
Spelling fixes for tdb.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
10 years agos4:torture/ldap/basic.c - add some "const"
Matthias Dieter Wallnöfer [Mon, 22 Feb 2010 20:19:27 +0000 (21:19 +0100)]
s4:torture/ldap/basic.c - add some "const"

In addition I removed a "talloc_free(req)" since we never free elsewhere the
requests explicitly and do it only indirectly with freeing the "conn" object
when the testsuite terminates.

10 years agos4:netlogon enhance DsrEnumerateDomainTrusts
Simo Sorce [Sun, 21 Feb 2010 21:07:00 +0000 (16:07 -0500)]
s4:netlogon enhance DsrEnumerateDomainTrusts

Actually return trust relationships by searching the appropriate
entries in the SAM database.
Add checks and return the correct flags, type and attributes.

10 years agos4:operational LDB module - enable support for passing referrals through it
Matthias Dieter Wallnöfer [Sun, 21 Feb 2010 10:55:48 +0000 (11:55 +0100)]
s4:operational LDB module - enable support for passing referrals through it

10 years agos4:partition DSDB module - Cosmetic fixups
Matthias Dieter Wallnöfer [Sat, 20 Feb 2010 19:31:41 +0000 (20:31 +0100)]
s4:partition DSDB module - Cosmetic fixups

10 years agos4:password_hash - Fix up request message pointers
Matthias Dieter Wallnöfer [Tue, 16 Feb 2010 18:48:46 +0000 (19:48 +0100)]
s4:password_hash - Fix up request message pointers

For add requests we need the add request messages, for modify requests we need
the modify request messages.

10 years agos4:dsdb/util.c - Use LDB result constants in some more helper functions
Matthias Dieter Wallnöfer [Wed, 17 Feb 2010 17:24:03 +0000 (18:24 +0100)]
s4:dsdb/util.c - Use LDB result constants in some more helper functions

Always better to rely on the standards rather than on custom results.

10 years agos4:provision.py - try to use other addresses than "127.0.0.x" and "::1"
Matthias Dieter Wallnöfer [Sun, 21 Feb 2010 20:30:42 +0000 (21:30 +0100)]
s4:provision.py - try to use other addresses than "127.0.0.x" and "::1"

On production systems a user for sure strongly disagrees to use local IP
addresses (how should the server be accessible?). Therefore if the user didn't
specify an IP as provision option and in the "/etc/hosts" file we have at
least one not-local IP which resolves to our hostname use this or one of them.

Notice: if a host has more public IP addresses with the same name assigned the
behaviour is non-deterministic (well, okay - by the entries order it is). But
then the user is invited to specify the host IP manually.

This should address bug #5484.

10 years agos4:AD content - Implement the new password settings container
Matthias Dieter Wallnöfer [Sat, 20 Feb 2010 10:17:23 +0000 (11:17 +0100)]
s4:AD content - Implement the new password settings container

10 years agos4:AD content - adequate some revision levels to match Windows Server 2008
Matthias Dieter Wallnöfer [Sat, 20 Feb 2010 10:16:58 +0000 (11:16 +0100)]
s4:AD content - adequate some revision levels to match Windows Server 2008

10 years agos4:AD content - Add the DFSR objects which exist on Windows Server >= 2008
Matthias Dieter Wallnöfer [Sat, 20 Feb 2010 10:15:25 +0000 (11:15 +0100)]
s4:AD content - Add the DFSR objects which exist on Windows Server >= 2008

Those replace the FRS ones.

10 years agos3: Avoid calling cli_alloc_mid twice in cli_smb_req_iov_send
Volker Lendecke [Sun, 21 Feb 2010 19:39:36 +0000 (20:39 +0100)]
s3: Avoid calling cli_alloc_mid twice in cli_smb_req_iov_send

I hate macros....

10 years agocleanup
Simo Sorce [Sat, 20 Feb 2010 19:21:36 +0000 (14:21 -0500)]
cleanup

remove trailing spaces, tabs and blank lines

10 years agos3: Use the status from cli_raw_ioctl in torture_ioctl_test
Volker Lendecke [Sun, 21 Feb 2010 10:41:54 +0000 (11:41 +0100)]
s3: Use the status from cli_raw_ioctl in torture_ioctl_test

10 years agos3: Make string_to_sid survive the LOCAL-string_to_sid test
Volker Lendecke [Sat, 20 Feb 2010 20:32:07 +0000 (21:32 +0100)]
s3: Make string_to_sid survive the LOCAL-string_to_sid test

10 years agos3: Rename LOCAL-dom_sid_parse to LOCAL-string_to_sid, add some tests
Volker Lendecke [Sat, 20 Feb 2010 20:31:16 +0000 (21:31 +0100)]
s3: Rename LOCAL-dom_sid_parse to LOCAL-string_to_sid, add some tests

10 years agos3: Add printf why LOCAL-dom_sid_parse failed
Volker Lendecke [Sat, 20 Feb 2010 20:07:08 +0000 (21:07 +0100)]
s3: Add printf why LOCAL-dom_sid_parse failed

10 years agos3: Slightly simplify the logic of completion_remote_filter
Volker Lendecke [Thu, 18 Feb 2010 21:52:41 +0000 (22:52 +0100)]
s3: Slightly simplify the logic of completion_remote_filter

10 years agos3: Fix some nonempty blank lines
Volker Lendecke [Tue, 16 Feb 2010 21:07:22 +0000 (22:07 +0100)]
s3: Fix some nonempty blank lines

10 years agos3: Remove a "typedef struct"
Volker Lendecke [Mon, 15 Feb 2010 22:53:18 +0000 (23:53 +0100)]
s3: Remove a "typedef struct"

10 years agos3: Fix a typo
Volker Lendecke [Mon, 15 Feb 2010 22:52:51 +0000 (23:52 +0100)]
s3: Fix a typo

10 years agos3: Convert cli_qpathinfo_basic to use cli_trans()
Volker Lendecke [Sun, 7 Feb 2010 13:07:17 +0000 (14:07 +0100)]
s3: Convert cli_qpathinfo_basic to use cli_trans()

10 years agos3: Convert cli_raw_ioctl to use cli_smb()
Volker Lendecke [Sun, 7 Feb 2010 12:36:49 +0000 (13:36 +0100)]
s3: Convert cli_raw_ioctl to use cli_smb()

10 years agos3: Add cli_smb()
Volker Lendecke [Sun, 7 Feb 2010 12:24:41 +0000 (13:24 +0100)]
s3: Add cli_smb()

This is a sync wrapper around cli_smb_send/cli_smb_recv. This is a hack to
speed up converting libsmb/ away from cli_send_smb/cli_receive_smb. Some
routines in libsmb/ are only called in one place in smbtorture for example,
where making it async right now is not worth it. With cli_smb_send/cli_smb_recv
in place, pushing the asynchronosity out one level is "just" boilerplate code
that is easy to do should it become necessary.

10 years agolibrpc/ndr Remove unused macros
Andrew Bartlett [Sat, 20 Feb 2010 00:51:47 +0000 (11:51 +1100)]
librpc/ndr Remove unused macros

Since the change to the way we pull these OIDs from the wire, these
macros are unused.

Andrew Bartlett

10 years agos4:credentials Add hooks to extract a named Kerberos credentials cache
Andrew Bartlett [Sat, 20 Feb 2010 00:44:41 +0000 (11:44 +1100)]
s4:credentials Add hooks to extract a named Kerberos credentials cache

This allows the integration of external tools that can't be linked
into C or python, but need to authenticate as the local machine
account.

The machineaccountccache script demonstrates this, and debugging has
been improved in cli_credentials_set_secrets() by passing back and
error string.

Andrew Bartlett

10 years agos4:lsa open trusted domain also with dns name
Simo Sorce [Fri, 19 Feb 2010 23:09:48 +0000 (18:09 -0500)]
s4:lsa open trusted domain also with dns name

When searching for a trusted domain object to open, search also the DNS Name
attributes for a match. W2K8R2 uses the DNS domain if available.

10 years agoremove trailing tabs and spaces
Simo Sorce [Fri, 19 Feb 2010 22:46:42 +0000 (17:46 -0500)]
remove trailing tabs and spaces

10 years agoSecond part of fix for bug #7159 - client rpc_transport doesn't cope with bad server...
Jeremy Allison [Fri, 19 Feb 2010 22:24:17 +0000 (14:24 -0800)]
Second part of fix for bug #7159 - client rpc_transport doesn't cope with bad server data returns.

If server returns zero on a NP read. Report pipe broken.
Prevents client from looping if it thinks there should be
more data.

Jeremy.