metze/samba/wb-ndr.git
16 years agoask for session keys... v3-2-libwbclient
Stefan Metzmacher [Mon, 4 Feb 2008 17:19:54 +0000 (18:19 +0100)]
ask for session keys...

16 years agoauth_winbind: use wbcAuthenticateUserEx()
Stefan Metzmacher [Mon, 4 Feb 2008 17:18:36 +0000 (18:18 +0100)]
auth_winbind: use wbcAuthenticateUserEx()

metze

16 years agolib: use wbcTurnOff(), wbcTurnOn(), wbcEnabled()
Stefan Metzmacher [Mon, 4 Feb 2008 14:41:00 +0000 (15:41 +0100)]
lib: use wbcTurnOff(), wbcTurnOn(), wbcEnabled()

metze

16 years agopassdb: use wbcTurnOff(), wbcTurnOn(), wbcEnabled()
Stefan Metzmacher [Mon, 4 Feb 2008 14:40:15 +0000 (15:40 +0100)]
passdb: use wbcTurnOff(), wbcTurnOn(), wbcEnabled()

metze

16 years agosmbd: use make usage of wbcDomainInfo()
Stefan Metzmacher [Mon, 4 Feb 2008 12:47:15 +0000 (13:47 +0100)]
smbd: use make usage of wbcDomainInfo()

metze

16 years agoHACK to compile without wbcErrorString() implementation
Stefan Metzmacher [Mon, 4 Feb 2008 12:44:07 +0000 (13:44 +0100)]
HACK to compile without wbcErrorString() implementation

16 years agolibwbclient: add wbcTurnOff(void), wbcTurnOn(), wbcEnabled()
Stefan Metzmacher [Mon, 4 Feb 2008 12:42:52 +0000 (13:42 +0100)]
libwbclient: add wbcTurnOff(void), wbcTurnOn(), wbcEnabled()

metze

16 years agohack to fix make test together --with-fhs
Stefan Metzmacher [Mon, 5 Nov 2007 15:58:17 +0000 (16:58 +0100)]
hack to fix make test together --with-fhs

metze

16 years agouse wbcAuthenticateUserEx()
Stefan Metzmacher [Tue, 29 Jan 2008 15:21:14 +0000 (16:21 +0100)]
use wbcAuthenticateUserEx()

metze

16 years agoimplementation of wbcAuthenticateUserEx()....
Stefan Metzmacher [Tue, 29 Jan 2008 15:11:04 +0000 (16:11 +0100)]
implementation of wbcAuthenticateUserEx()....

metze

16 years agowbcAuthentiacteUserEx() TODO...
Stefan Metzmacher [Thu, 24 Jan 2008 13:05:59 +0000 (14:05 +0100)]
wbcAuthentiacteUserEx() TODO...

16 years agowinbindd: add rids and other_sids arrays in WBFLAG_PAM_INFO3_TEXT mode
Stefan Metzmacher [Fri, 18 Jan 2008 07:43:45 +0000 (08:43 +0100)]
winbindd: add rids and other_sids arrays in WBFLAG_PAM_INFO3_TEXT mode

metze

16 years agoFix valgrind errors
Volker Lendecke [Mon, 4 Feb 2008 18:33:56 +0000 (19:33 +0100)]
Fix valgrind errors

We need to keep the names around on the search. Probably a tdb_move would do it
here as well, but RPC is not the fastest thing on earth anyway...

Thanks to Günther for pointing that out to me!

16 years agotiny simplification
Volker Lendecke [Mon, 4 Feb 2008 15:50:09 +0000 (16:50 +0100)]
tiny simplification

16 years agoRemove a static
Volker Lendecke [Sat, 2 Feb 2008 13:01:26 +0000 (14:01 +0100)]
Remove a static

I very much doubt that this is called enough to justify a global. If this turns
out to be a hot code path, we might reconsider :-)

16 years agoRemove unused marshalling for SAMR_CONNECT_4.
Günther Deschner [Mon, 4 Feb 2008 18:17:41 +0000 (19:17 +0100)]
Remove unused marshalling for SAMR_CONNECT_4.

Guenther

16 years agoAdd note about "unknown" in samr_Connect4 (from Samba3 rpc_parse).
Günther Deschner [Mon, 4 Feb 2008 18:13:57 +0000 (19:13 +0100)]
Add note about "unknown" in samr_Connect4 (from Samba3 rpc_parse).

Guenther

16 years agoUse rpccli_samr_Connect4() in rpcclient.
Günther Deschner [Mon, 4 Feb 2008 18:13:15 +0000 (19:13 +0100)]
Use rpccli_samr_Connect4() in rpcclient.

Guenther

16 years agoRemove unused marshalling for SAMR_ADD_GROUPMEM.
Günther Deschner [Mon, 4 Feb 2008 17:26:18 +0000 (18:26 +0100)]
Remove unused marshalling for SAMR_ADD_GROUPMEM.

Guenther

16 years agoUse rpccli_samr_AddGroupMember() in net.
Günther Deschner [Mon, 4 Feb 2008 17:45:07 +0000 (18:45 +0100)]
Use rpccli_samr_AddGroupMember() in net.

Guenther

16 years agoUse pidl for _samr_AddGroupMember().
Günther Deschner [Mon, 4 Feb 2008 17:36:44 +0000 (18:36 +0100)]
Use pidl for _samr_AddGroupMember().

Guenther

16 years agoRemove unused marshalling for SAMR_DEL_GROUPMEM.
Günther Deschner [Mon, 4 Feb 2008 17:16:30 +0000 (18:16 +0100)]
Remove unused marshalling for SAMR_DEL_GROUPMEM.

Guenther

16 years agoUse rpccli_samr_DeleteGroupMember() in net.
Günther Deschner [Mon, 4 Feb 2008 17:13:07 +0000 (18:13 +0100)]
Use rpccli_samr_DeleteGroupMember() in net.

Guenther

16 years agoUse pidl for _samr_DeleteGroupMember().
Günther Deschner [Mon, 4 Feb 2008 17:09:35 +0000 (18:09 +0100)]
Use pidl for _samr_DeleteGroupMember().

Guenther

16 years agodynconfig: Add missing prototypes and fix typoed ones.
Kai Blin [Mon, 4 Feb 2008 16:58:31 +0000 (17:58 +0100)]
dynconfig: Add missing prototypes and fix typoed ones.

Jeremy, please check.

16 years agoRemove unused marshalling for SAMR_CONNECT5.
Günther Deschner [Mon, 4 Feb 2008 16:14:57 +0000 (17:14 +0100)]
Remove unused marshalling for SAMR_CONNECT5.

Guenther

16 years agoUse pidl for _samr_Connect5().
Günther Deschner [Mon, 4 Feb 2008 16:10:16 +0000 (17:10 +0100)]
Use pidl for _samr_Connect5().

Guenther

16 years agoUse pidl for _samr_Connect4().
Günther Deschner [Mon, 4 Feb 2008 15:35:32 +0000 (16:35 +0100)]
Use pidl for _samr_Connect4().

Guenther

16 years agoUse pidl for _samr_Connect2().
Günther Deschner [Mon, 4 Feb 2008 15:23:46 +0000 (16:23 +0100)]
Use pidl for _samr_Connect2().

Guenther

16 years agoRemove unused marshalling for SAMR_CONNECT_ANON.
Günther Deschner [Mon, 4 Feb 2008 15:20:25 +0000 (16:20 +0100)]
Remove unused marshalling for SAMR_CONNECT_ANON.

Guenther

16 years agoUse pidl for _samr_Connect().
Günther Deschner [Mon, 4 Feb 2008 15:17:20 +0000 (16:17 +0100)]
Use pidl for _samr_Connect().

Guenther

16 years agopopt: Use SMB_CONF_PATH environment var if no other configfile is set.
Kai Blin [Mon, 4 Feb 2008 15:16:59 +0000 (16:16 +0100)]
popt: Use SMB_CONF_PATH environment var if no other configfile is set.

Now --configfile (or -s) will have precedence, if that's not given
SMB_CONF_PATH is checked, otherwise the $(CONFIGDIR)/smb.conf default
value is used.

Thanks to Michael for his comments.

16 years agoUse the proper boolean constants in wbinfo.c .
Michael Adam [Mon, 4 Feb 2008 16:25:06 +0000 (17:25 +0100)]
Use the proper boolean constants in wbinfo.c .

Michael

16 years agoReformatting: Fix spacing in wbinfo.c .
Michael Adam [Mon, 4 Feb 2008 16:23:28 +0000 (17:23 +0100)]
Reformatting: Fix spacing in wbinfo.c .

This fixes mixed tabs/spaces and trailing whitespaces
I just ran across.

Michael

16 years agoPrevent a segfault when "wbinfo -a" is called without password.
Michael Adam [Mon, 4 Feb 2008 16:07:54 +0000 (17:07 +0100)]
Prevent a segfault when "wbinfo -a" is called without password.

wbcAuthenticateUser segfaults when passed NULL as password.
This only changes the caller in wbinfo.c to pass an empty
password string to wbcAuthenticateUser().

Michael

16 years agoFix a typo in a debug message.
Michael Adam [Mon, 28 Jan 2008 16:47:41 +0000 (17:47 +0100)]
Fix a typo in a debug message.

Michael

16 years agoRemove "pointer_default_top(unique)" from spoolss.idl and rerun make idl.
Günther Deschner [Mon, 4 Feb 2008 12:45:49 +0000 (13:45 +0100)]
Remove "pointer_default_top(unique)" from spoolss.idl and rerun make idl.

Guenther

16 years agoRemove "pointer_default_top(unique)" from srvsvc.idl and rerun make idl.
Günther Deschner [Mon, 4 Feb 2008 12:40:04 +0000 (13:40 +0100)]
Remove "pointer_default_top(unique)" from srvsvc.idl and rerun make idl.

Guenther

16 years agoRemove "pointer_default_top(unique)" from svcctl.idl and rerun make idl.
Günther Deschner [Mon, 4 Feb 2008 12:27:19 +0000 (13:27 +0100)]
Remove "pointer_default_top(unique)" from svcctl.idl and rerun make idl.

Guenther

16 years agoRemove "pointer_default_top(unique)" from winreg.idl and rerun make idl.
Günther Deschner [Mon, 4 Feb 2008 12:07:14 +0000 (13:07 +0100)]
Remove "pointer_default_top(unique)" from winreg.idl and rerun make idl.

Guenther

16 years agoRemove "pointer_default_top(unique)" from wkssvc.idl and rerun make idl.
Günther Deschner [Mon, 4 Feb 2008 11:58:07 +0000 (12:58 +0100)]
Remove "pointer_default_top(unique)" from wkssvc.idl and rerun make idl.

Guenther

16 years agoRemove "pointer_default_top(unique)" from samr.idl and rerun make idl.
Günther Deschner [Mon, 4 Feb 2008 11:52:33 +0000 (12:52 +0100)]
Remove "pointer_default_top(unique)" from samr.idl and rerun make idl.

Guenther

16 years agoRemove "pointer_default_top(unique)" from eventlog.idl and rerun make idl.
Günther Deschner [Mon, 4 Feb 2008 11:29:07 +0000 (12:29 +0100)]
Remove "pointer_default_top(unique)" from eventlog.idl and rerun make idl.

Guenther

16 years agoRemove "pointer_default_top(unique)" from netlogon.idl and rerun make idl.
Günther Deschner [Mon, 4 Feb 2008 11:28:20 +0000 (12:28 +0100)]
Remove "pointer_default_top(unique)" from netlogon.idl and rerun make idl.

Guenther

16 years agoForgot to add this hunk in ndr_pull_eventlog_Record from an earlier commit.
Günther Deschner [Mon, 4 Feb 2008 10:52:30 +0000 (11:52 +0100)]
Forgot to add this hunk in ndr_pull_eventlog_Record from an earlier commit.

Guenther

16 years agoRemove unused arguments in read_package_entry() in the eventlog rpc server.
Günther Deschner [Mon, 4 Feb 2008 10:33:06 +0000 (11:33 +0100)]
Remove unused arguments in read_package_entry() in the eventlog rpc server.

Guenther

16 years agoRe-run make idl.
Günther Deschner [Mon, 4 Feb 2008 10:28:15 +0000 (11:28 +0100)]
Re-run make idl.

Guenther

16 years agoFix IDL for eventlog_ReadEventLogW().
Günther Deschner [Mon, 4 Feb 2008 10:27:22 +0000 (11:27 +0100)]
Fix IDL for eventlog_ReadEventLogW().

Guenther

16 years agoRemove unused marshalling for EVENTLOG_OPEN_EVENTLOG.
Günther Deschner [Mon, 4 Feb 2008 10:10:53 +0000 (11:10 +0100)]
Remove unused marshalling for EVENTLOG_OPEN_EVENTLOG.

Guenther

16 years agoUse pidl for _eventlog_OpenEventLogW().
Günther Deschner [Mon, 4 Feb 2008 10:10:18 +0000 (11:10 +0100)]
Use pidl for _eventlog_OpenEventLogW().

Guenther

16 years agoRe-run make idl.
Günther Deschner [Mon, 4 Feb 2008 10:08:36 +0000 (11:08 +0100)]
Re-run make idl.

Guenther

16 years agoFix IDL for eventlog_OpenEventLogW().
Günther Deschner [Mon, 4 Feb 2008 10:07:41 +0000 (11:07 +0100)]
Fix IDL for eventlog_OpenEventLogW().

Guenther

16 years agoRemove unused marshalling for EVENTLOG_CLEAR_EVENTLOG.
Günther Deschner [Mon, 4 Feb 2008 09:56:16 +0000 (10:56 +0100)]
Remove unused marshalling for EVENTLOG_CLEAR_EVENTLOG.

Guenther

16 years agoCopy inline comment for _eventlog_ClearEventLogW() from rpc_parse to rpc_server.
Günther Deschner [Mon, 4 Feb 2008 09:55:14 +0000 (10:55 +0100)]
Copy inline comment for _eventlog_ClearEventLogW() from rpc_parse to rpc_server.

Guenther

16 years agoUse pidl for _eventlog_ClearEventLogW().
Günther Deschner [Mon, 4 Feb 2008 09:53:59 +0000 (10:53 +0100)]
Use pidl for _eventlog_ClearEventLogW().

Guenther

16 years agoRemove unused marshalling for EVENTLOG_GET_OLDEST_ENTRY.
Günther Deschner [Mon, 4 Feb 2008 09:45:50 +0000 (10:45 +0100)]
Remove unused marshalling for EVENTLOG_GET_OLDEST_ENTRY.

Guenther

16 years agoUse pidl for _eventlog_GetOldestRecord().
Günther Deschner [Mon, 4 Feb 2008 09:44:51 +0000 (10:44 +0100)]
Use pidl for _eventlog_GetOldestRecord().

Guenther

16 years agoRe-run make idl.
Günther Deschner [Mon, 4 Feb 2008 09:44:00 +0000 (10:44 +0100)]
Re-run make idl.

Guenther

16 years agoFill in IDL eventlog_GetOldestRecord() based on samba3 rpc.
Günther Deschner [Mon, 4 Feb 2008 09:42:33 +0000 (10:42 +0100)]
Fill in IDL eventlog_GetOldestRecord() based on samba3 rpc.

Guenther

16 years agoRe-run make idl.
Günther Deschner [Mon, 4 Feb 2008 09:15:19 +0000 (10:15 +0100)]
Re-run make idl.

Guenther

16 years agoFix IDL for eventlog_ClearEventLogW.
Günther Deschner [Mon, 4 Feb 2008 09:14:08 +0000 (10:14 +0100)]
Fix IDL for eventlog_ClearEventLogW.

As of existing samba3 rpc code, unknown is backupfile.

Guenther

16 years agoRemove unused marshalling for EVENTLOG_GET_NUM_RECORDS.
Günther Deschner [Mon, 4 Feb 2008 09:12:08 +0000 (10:12 +0100)]
Remove unused marshalling for EVENTLOG_GET_NUM_RECORDS.

Guenther

16 years agoUse pidl for _eventlog_GetNumRecords().
Günther Deschner [Mon, 4 Feb 2008 09:10:12 +0000 (10:10 +0100)]
Use pidl for _eventlog_GetNumRecords().

Guenther

16 years agoRemove unused marshalling for SAMR_SET_SEC_OBJ.
Günther Deschner [Fri, 1 Feb 2008 16:25:09 +0000 (17:25 +0100)]
Remove unused marshalling for SAMR_SET_SEC_OBJ.

Guenther

16 years agoUse pidl for _samr_SetSecurity().
Günther Deschner [Fri, 1 Feb 2008 16:29:03 +0000 (17:29 +0100)]
Use pidl for _samr_SetSecurity().

Guenther

16 years agoRemove unused marshalling for SAMR_QUERY_SEC_OBJ.
Günther Deschner [Fri, 1 Feb 2008 16:21:35 +0000 (17:21 +0100)]
Remove unused marshalling for SAMR_QUERY_SEC_OBJ.

Guenther

16 years agoUse pidl for _samr_QuerySecurity().
Günther Deschner [Fri, 1 Feb 2008 16:28:01 +0000 (17:28 +0100)]
Use pidl for _samr_QuerySecurity().

Guenther

16 years agoUse rpccli_samr_QuerySecurity() for rpcclient.
Günther Deschner [Fri, 1 Feb 2008 16:30:42 +0000 (17:30 +0100)]
Use rpccli_samr_QuerySecurity() for rpcclient.

Guenther

16 years agoRemove smb_read_error global
Volker Lendecke [Sat, 26 Jan 2008 14:36:00 +0000 (15:36 +0100)]
Remove smb_read_error global

YESS :-)

16 years agoRemove dependency on get_srv_read_error() from main loop
Volker Lendecke [Sat, 26 Jan 2008 14:33:40 +0000 (15:33 +0100)]
Remove dependency on get_srv_read_error() from main loop

16 years agoConvert receive_message_or_smb to NTSTATUS
Volker Lendecke [Sat, 26 Jan 2008 14:18:33 +0000 (15:18 +0100)]
Convert receive_message_or_smb to NTSTATUS

16 years agoConvert read_data() to NTSTATUS
Volker Lendecke [Sat, 26 Jan 2008 09:39:21 +0000 (10:39 +0100)]
Convert read_data() to NTSTATUS

16 years agoMake get_srv_read_error static to process.c
Volker Lendecke [Fri, 25 Jan 2008 22:57:20 +0000 (23:57 +0100)]
Make get_srv_read_error static to process.c

16 years agoConvert receive_smb_raw to NTSTATUS
Volker Lendecke [Fri, 25 Jan 2008 22:54:22 +0000 (23:54 +0100)]
Convert receive_smb_raw to NTSTATUS

16 years agoread_socket_with_timeout_ntstatus->read_socket_with_timeout
Volker Lendecke [Fri, 25 Jan 2008 22:43:50 +0000 (23:43 +0100)]
read_socket_with_timeout_ntstatus->read_socket_with_timeout

16 years agoGet rid of read_socket_with_timeout
Volker Lendecke [Fri, 25 Jan 2008 22:41:48 +0000 (23:41 +0100)]
Get rid of read_socket_with_timeout

16 years agoConvert receive_smb_talloc to NTSTATUS
Volker Lendecke [Fri, 25 Jan 2008 22:28:22 +0000 (23:28 +0100)]
Convert receive_smb_talloc to NTSTATUS

16 years agoConvert receive_smb_raw_talloc to NTSTATUS
Volker Lendecke [Fri, 25 Jan 2008 22:18:56 +0000 (23:18 +0100)]
Convert receive_smb_raw_talloc to NTSTATUS

16 years agoConvert receive_smb_raw_talloc_partial_read to NTSTATUS
Volker Lendecke [Fri, 25 Jan 2008 22:12:04 +0000 (23:12 +0100)]
Convert receive_smb_raw_talloc_partial_read to NTSTATUS

16 years agoConvert read_packet_remainder to return NTSTATUS
Volker Lendecke [Fri, 25 Jan 2008 21:27:59 +0000 (22:27 +0100)]
Convert read_packet_remainder to return NTSTATUS

16 years agoConvert read_packet_remainder to use read_socket_with_timeout_ntstatus
Volker Lendecke [Fri, 25 Jan 2008 21:21:38 +0000 (22:21 +0100)]
Convert read_packet_remainder to use read_socket_with_timeout_ntstatus

16 years agoConvert read_smb_length to return NTSTATUS
Volker Lendecke [Fri, 25 Jan 2008 20:31:40 +0000 (21:31 +0100)]
Convert read_smb_length to return NTSTATUS

16 years agoConvert read_smb_length_return_keepalive to return NTSTATUS
Volker Lendecke [Fri, 25 Jan 2008 20:24:48 +0000 (21:24 +0100)]
Convert read_smb_length_return_keepalive to return NTSTATUS

16 years agoConvert read_smb_length_return_keepalive to read_socket_with_timeout_ntstatus
Volker Lendecke [Fri, 25 Jan 2008 20:02:52 +0000 (21:02 +0100)]
Convert read_smb_length_return_keepalive to read_socket_with_timeout_ntstatus

16 years agoAdd read_socket_with_timeout_ntstatus
Volker Lendecke [Thu, 24 Jan 2008 18:17:14 +0000 (19:17 +0100)]
Add read_socket_with_timeout_ntstatus

16 years agoReturn NOTFOUND from db_tdb_delete if the record does not exist
Volker Lendecke [Thu, 24 Jan 2008 18:06:25 +0000 (19:06 +0100)]
Return NOTFOUND from db_tdb_delete if the record does not exist

16 years agoRe-run make idl.
Günther Deschner [Fri, 1 Feb 2008 22:32:48 +0000 (23:32 +0100)]
Re-run make idl.

Guenther

16 years agoFix samr_QuerySecurity IDL.
Günther Deschner [Fri, 1 Feb 2008 16:08:51 +0000 (17:08 +0100)]
Fix samr_QuerySecurity IDL.

Guenther

16 years agoNetBSD needs LD_LIBRARY_PATH
Volker Lendecke [Fri, 1 Feb 2008 19:03:05 +0000 (20:03 +0100)]
NetBSD needs LD_LIBRARY_PATH

16 years agoFix a typo
Volker Lendecke [Fri, 1 Feb 2008 14:37:11 +0000 (15:37 +0100)]
Fix a typo

16 years agoRe-run make idl.
Günther Deschner [Fri, 1 Feb 2008 22:28:37 +0000 (23:28 +0100)]
Re-run make idl.

Guenther

16 years agoUse pidl for _samr_ChangePasswordUser2().
Günther Deschner [Fri, 1 Feb 2008 22:06:43 +0000 (23:06 +0100)]
Use pidl for _samr_ChangePasswordUser2().

Guenther

16 years agoEnsure that convert_string_allocate() allocates 2 extra
Jeremy Allison [Fri, 1 Feb 2008 22:23:54 +0000 (14:23 -0800)]
Ensure that convert_string_allocate() allocates 2 extra
bytes and null terminates them to ensure NDR wire-reads
of string types are always null terminated. Bug found by
Volker after great pain :-).
Jeremy.

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Simo Sorce [Fri, 1 Feb 2008 19:24:31 +0000 (14:24 -0500)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test

16 years agoFix winbindd running on a Samba DC,
Simo Sorce [Fri, 1 Feb 2008 18:50:04 +0000 (13:50 -0500)]
Fix winbindd running on a Samba DC,
This patch make sure we do not try to contact smbd in the main dameon
to avoid deadlocks.
All the operations that require connecting to smbd are performed in
the domain child anyway.

16 years agoRemove unused marshalling for SAMR_CREATE_USER.
Günther Deschner [Fri, 1 Feb 2008 13:53:58 +0000 (14:53 +0100)]
Remove unused marshalling for SAMR_CREATE_USER.

Guenther

16 years agoUse rpccli_samr_CreateUser2() all over the place.
Günther Deschner [Fri, 1 Feb 2008 13:21:54 +0000 (14:21 +0100)]
Use rpccli_samr_CreateUser2() all over the place.

Guenther

16 years agoUse pidl for _samr_CreateUser2().
Günther Deschner [Fri, 1 Feb 2008 13:50:33 +0000 (14:50 +0100)]
Use pidl for _samr_CreateUser2().

Guenther

16 years agoRemove unused marshalling for SAMR_CREATE_DOM_GROUP.
Günther Deschner [Fri, 1 Feb 2008 13:52:05 +0000 (14:52 +0100)]
Remove unused marshalling for SAMR_CREATE_DOM_GROUP.

Guenther

16 years agoUse rpccli_samr_CreateDomainGroup() in net and rpcclient.
Günther Deschner [Fri, 1 Feb 2008 12:42:28 +0000 (13:42 +0100)]
Use rpccli_samr_CreateDomainGroup() in net and rpcclient.

Guenther