ira/wip.git
11 years agoAdd const
Andrew Bartlett [Tue, 4 Aug 2009 06:11:55 +0000 (16:11 +1000)]
Add const

11 years agos4:ldif_handlers Allow a binary nTsecurityDescriptor when parsing LDIF
Andrew Bartlett [Tue, 4 Aug 2009 06:07:18 +0000 (16:07 +1000)]
s4:ldif_handlers Allow a binary nTsecurityDescriptor when parsing LDIF

Also allow a SDDL security descriptor, using the domain SID attached
to the session (it will search for it during the LDIF parse if need
be).

Andrew Bartlett

11 years agos4:netlogon Fix warnings and segfault in GetDomainInfo call
Andrew Bartlett [Tue, 4 Aug 2009 04:36:14 +0000 (14:36 +1000)]
s4:netlogon Fix warnings and segfault in GetDomainInfo call

 - Correctly use samdb_search_string to do a 'base' search
   (this needs a NULL, not a "" argument for the format string)

 - There is no need (and it caused a security hole) to use
   talloc_asprintf() with the only argument being the string to
   duplicate.

Andrew Bartlett

11 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Andrew Tridgell [Tue, 4 Aug 2009 06:02:23 +0000 (16:02 +1000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

11 years agofixed support for readx greater than 64k
Andrew Tridgell [Tue, 4 Aug 2009 06:01:11 +0000 (16:01 +1000)]
fixed support for readx greater than 64k

This fixes bug 6547, where smbclient in S3 reads more than 64k at a
time with readx.

11 years agos4:torture rework LDAP sort test
Andrew Bartlett [Tue, 4 Aug 2009 02:52:11 +0000 (12:52 +1000)]
s4:torture rework LDAP sort test

This reworks the test to be part of the LDAP tests, to make better use
of the torture API and the ldb API (in particular around adding
controls), and a general cleanup.

This also adds the test to the 'make test' run.

Andrew Bartlett

11 years agos4:torture Add test for correct server-side sorting over LDAP
Matthieu Patou [Tue, 4 Aug 2009 01:51:46 +0000 (11:51 +1000)]
s4:torture Add test for correct server-side sorting over LDAP

11 years agoUse smbclient binary for the test file in smbclient test
Andrew Bartlett [Tue, 4 Aug 2009 01:12:33 +0000 (11:12 +1000)]
Use smbclient binary for the test file in smbclient test

In the vein hope that a larger file might show problems better than a
small file.

Andrew Bartlett

11 years agoparam/pyparam: Cope with string list parameters being empty.
Ricardo Jorge [Mon, 3 Aug 2009 22:03:04 +0000 (00:03 +0200)]
param/pyparam: Cope with string list parameters being empty.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agopython/loadparm: Get shares listing working.
Ricardo Jorge [Mon, 3 Aug 2009 22:00:25 +0000 (00:00 +0200)]
python/loadparm: Get shares listing working.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agopyldb: Properly keep copies of Python string contents, rather than
Jelmer Vernooij [Mon, 3 Aug 2009 21:58:16 +0000 (23:58 +0200)]
pyldb: Properly keep copies of Python string contents, rather than
relying on reference leaks :-)

11 years agos4-ldap_server: fix generated error string in map_ldb_error().
Günther Deschner [Mon, 3 Aug 2009 22:06:26 +0000 (00:06 +0200)]
s4-ldap_server: fix generated error string in map_ldb_error().

Guenther

11 years agos3-spoolss: fix crash bug in spoolss_addprinterex_level_2.
Günther Deschner [Mon, 3 Aug 2009 21:41:08 +0000 (23:41 +0200)]
s3-spoolss: fix crash bug in spoolss_addprinterex_level_2.

Guenther

11 years agoAdd some const to winbind_userinfo
Volker Lendecke [Sat, 1 Aug 2009 14:38:13 +0000 (10:38 -0400)]
Add some const to winbind_userinfo

11 years agoFix a typo
Volker Lendecke [Sat, 1 Aug 2009 08:46:45 +0000 (10:46 +0200)]
Fix a typo

11 years agoFix some nonempty blank lines
Volker Lendecke [Mon, 3 Aug 2009 09:30:29 +0000 (11:30 +0200)]
Fix some nonempty blank lines

11 years agopyldb: Raise proper exception when attempting to assign a string to a dn
Jelmer Vernooij [Mon, 3 Aug 2009 16:15:16 +0000 (18:15 +0200)]
pyldb: Raise proper exception when attempting to assign a string to a dn
attribute.

11 years agos3-pdb_ldap: Make ldapsam_alias_memberships behave like the tdbsam equivalent.
Günther Deschner [Mon, 3 Aug 2009 14:28:59 +0000 (16:28 +0200)]
s3-pdb_ldap: Make ldapsam_alias_memberships behave like the tdbsam equivalent.

This lets samr_GetAliasMembership return with NT_STATUS_OK when called with 0
sids (just what w2k3 does).

Guenther

11 years agos4: Change constant to comply with the merged build
Matthias Dieter Wallnöfer [Mon, 3 Aug 2009 12:19:12 +0000 (14:19 +0200)]
s4: Change constant to comply with the merged build

11 years agos3/docs: Fix typos.
Karolin Seeger [Mon, 3 Aug 2009 08:19:45 +0000 (10:19 +0200)]
s3/docs: Fix typos.

Thanks to OPC oota <t-oota@dh.jp.nec.com> for reporting!

Karolin

11 years agos3/s4: Add new autogenerated files from "make idl_full"
Matthias Dieter Wallnöfer [Mon, 3 Aug 2009 07:51:44 +0000 (09:51 +0200)]
s3/s4: Add new autogenerated files from "make idl_full"

11 years agos4: Torture test for enhancements in "netr_LogonGetDomainInformations" call
Matthias Dieter Wallnöfer [Thu, 23 Jul 2009 11:05:34 +0000 (13:05 +0200)]
s4: Torture test for enhancements in "netr_LogonGetDomainInformations" call

This corrects and enhances the torture test of the mentioned call.

11 years agos4: Enhancements in the "netr_LogonGetDomainInformations" call
Matthias Dieter Wallnöfer [Wed, 22 Jul 2009 20:11:12 +0000 (22:11 +0200)]
s4: Enhancements in the "netr_LogonGetDomainInformations" call

This addresses bug #4888 and #6596 in SAMBA 4 Bugzilla
- It implements the call in the complete form as specified in the MSPP/WSPP docs
  and on the discussion on the "cifs-protocol" list
- Therefore client informations (OS name, OS version, "servicePrincipalName"...)
  are now saved in the AD each time the client invokes the call

11 years agonetlogon.idl: Prework to enhance the "netr_LogonGetDomainInformation" call correctly
Matthias Dieter Wallnöfer [Wed, 22 Jul 2009 19:01:52 +0000 (21:01 +0200)]
netlogon.idl: Prework to enhance the "netr_LogonGetDomainInformation" call correctly

This enhances the "netlogon.idl" file to allow enhancements on the mentioned call.
Therefore this is also the base for fixing up bug #4888.

11 years agonetlogon.idl: Removes the form "str[]" for string declarations
Matthias Dieter Wallnöfer [Wed, 22 Jul 2009 18:03:21 +0000 (20:03 +0200)]
netlogon.idl: Removes the form "str[]" for string declarations

In this file two different forms are used to explain the same datatype ("str[]" and "*str").
I didn't find this very nice and unified the occurrences to always use "*str".

This patch is of cosmetic nature.

11 years agoReturn infinite time for last last logoff when last logoff = 0
Matthieu Patou [Sat, 1 Aug 2009 10:02:58 +0000 (14:02 +0400)]
Return infinite time for last last logoff when last logoff = 0

11 years agos3: check in .po files for pam_winbind.
Bo Yang [Mon, 3 Aug 2009 00:16:21 +0000 (08:16 +0800)]
s3: check in .po files for pam_winbind.

Signed-off-by: Bo Yang <boyang@samba.org>
11 years agoFix some nonempty blank lines
Volker Lendecke [Sun, 2 Aug 2009 20:28:49 +0000 (22:28 +0200)]
Fix some nonempty blank lines

11 years agoFix breakage for connect function after API change (connect -> connect_fn)
Alexander Bokovoy [Sun, 2 Aug 2009 14:42:49 +0000 (17:42 +0300)]
Fix breakage for connect function after API change (connect -> connect_fn)

11 years agoRefactor 9b78af1f: Fix lookupname recursion
Volker Lendecke [Sun, 2 Aug 2009 08:43:05 +0000 (10:43 +0200)]
Refactor 9b78af1f: Fix lookupname recursion

Pass a "flags" argument instead of the original winbind command down the
name_to_sid chain. This way we are independent of the winbind commands and
can take the decision at a much higher level

11 years agoSome mods for recent coding conventions
Volker Lendecke [Fri, 31 Jul 2009 20:42:50 +0000 (22:42 +0200)]
Some mods for recent coding conventions

11 years agoPlace a comment correctly
Volker Lendecke [Fri, 31 Jul 2009 20:47:48 +0000 (22:47 +0200)]
Place a comment correctly

11 years agoFix indentation
Volker Lendecke [Fri, 31 Jul 2009 22:24:35 +0000 (00:24 +0200)]
Fix indentation

11 years agoRefactoring: mem_ctx is not needed as an argument to centry_sid
Volker Lendecke [Fri, 31 Jul 2009 21:48:39 +0000 (23:48 +0200)]
Refactoring: mem_ctx is not needed as an argument to centry_sid

11 years agoRename LOOKUP_NAME_EXPLICIT to LOOKUP_NAME_NO_NSS
Volker Lendecke [Fri, 31 Jul 2009 21:17:54 +0000 (23:17 +0200)]
Rename LOOKUP_NAME_EXPLICIT to LOOKUP_NAME_NO_NSS

It took me a bit to understand what this flag does. I hope this is
a bit clearer, at least it is to me.

11 years agoFix some nonempty lines
Volker Lendecke [Fri, 31 Jul 2009 20:59:30 +0000 (22:59 +0200)]
Fix some nonempty lines

11 years agoRemove a pointless variable
Volker Lendecke [Fri, 31 Jul 2009 20:38:54 +0000 (22:38 +0200)]
Remove a pointless variable

11 years agoWe're not changing last write, but setting this to be FILE_NOTIFY_CHANGE_CREATION
Jeremy Allison [Fri, 31 Jul 2009 18:19:19 +0000 (11:19 -0700)]
We're not changing last write, but setting this to be FILE_NOTIFY_CHANGE_CREATION
doesn't work. So use FILE_NOTIFY_CHANGE_LAST_WRITE (now seems to reliably fix
bug #6529 - Offline files conflict with Vista and Office 2003.
Jeremy.

11 years agos3: Remove invalid constant
Matthias Dieter Wallnöfer [Fri, 31 Jul 2009 17:24:53 +0000 (19:24 +0200)]
s3: Remove invalid constant

11 years agoMerge branch 'master' of git://git.samba.org/samba
Matthias Dieter Wallnöfer [Fri, 31 Jul 2009 16:17:00 +0000 (18:17 +0200)]
Merge branch 'master' of git://git.samba.org/samba

11 years agos4: Correct renamed constants
Matthias Dieter Wallnöfer [Fri, 31 Jul 2009 16:15:39 +0000 (18:15 +0200)]
s4: Correct renamed constants

11 years agoProvide a mem_ctx for child requests
Volker Lendecke [Fri, 31 Jul 2009 15:32:03 +0000 (17:32 +0200)]
Provide a mem_ctx for child requests

11 years agos4: Adds a small test for the new enhanced error messages from the AD LDAP server
Matthias Dieter Wallnöfer [Thu, 30 Jul 2009 10:43:49 +0000 (12:43 +0200)]
s4: Adds a small test for the new enhanced error messages from the AD LDAP server

11 years agos4: Enhances the LDAP server to display error messages like Windows Server
Matthias Dieter Wallnöfer [Thu, 30 Jul 2009 10:41:06 +0000 (12:41 +0200)]
s4: Enhances the LDAP server to display error messages like Windows Server

Those error messages also include the WERROR code of the failed operation(s) in this
manner: <error code eight chars in HEX>: <further error message>

This also addresses bug #4949

11 years agoAdds new error codes (needed for enhancing error messages for SAMBA 4 AD LDAP server)
Matthias Dieter Wallnöfer [Thu, 30 Jul 2009 10:40:14 +0000 (12:40 +0200)]
Adds new error codes (needed for enhancing error messages for SAMBA 4 AD LDAP server)

11 years agoSlightly restructure the async winbind request calling convention
Volker Lendecke [Fri, 31 Jul 2009 14:16:24 +0000 (16:16 +0200)]
Slightly restructure the async winbind request calling convention

The main loop now allocates the response, this has to be done everywhere

11 years agos4:libcli/ldap: the tls code steals the original socket on its own now
Stefan Metzmacher [Thu, 30 Jul 2009 06:44:21 +0000 (08:44 +0200)]
s4:libcli/ldap: the tls code steals the original socket on its own now

metze

11 years agos4:ldap_server: the tls code steals the original socket on its own now
Stefan Metzmacher [Thu, 30 Jul 2009 06:43:14 +0000 (08:43 +0200)]
s4:ldap_server: the tls code steals the original socket on its own now

metze

11 years agos4:tls: avoid using talloc_reference() in tls_init_client()
Stefan Metzmacher [Thu, 30 Jul 2009 06:42:42 +0000 (08:42 +0200)]
s4:tls: avoid using talloc_reference() in tls_init_client()

metze

11 years agos4:tls: avoid using talloc_reference() in tls_init_server()
Stefan Metzmacher [Thu, 30 Jul 2009 06:40:29 +0000 (08:40 +0200)]
s4:tls: avoid using talloc_reference() in tls_init_server()

metze

11 years agos4:libnet: use talloc_strdup() instead of talloc_reference()
Stefan Metzmacher [Wed, 15 Jul 2009 10:06:12 +0000 (12:06 +0200)]
s4:libnet: use talloc_strdup() instead of talloc_reference()

metze

11 years agos4:build: make sure that we regenerate proto headers when source files change
Stefan Metzmacher [Thu, 30 Jul 2009 06:31:35 +0000 (08:31 +0200)]
s4:build: make sure that we regenerate proto headers when source files change

metze

11 years agolibrpc/ndr_drsuapi: fix a memory leak on ndr_push_drsuapi_DsReplicaOID()
Stefan Metzmacher [Thu, 30 Jul 2009 06:30:15 +0000 (08:30 +0200)]
librpc/ndr_drsuapi: fix a memory leak on ndr_push_drsuapi_DsReplicaOID()

metze

11 years agoutil/asn1: fix potential memory leak in asn1_write_OID()
Stefan Metzmacher [Thu, 30 Jul 2009 06:29:28 +0000 (08:29 +0200)]
util/asn1: fix potential memory leak in asn1_write_OID()

metze

11 years agos4:auth: make sure we have elements returned at all in authsam_expand_nested_groups()
Stefan Metzmacher [Fri, 31 Jul 2009 08:38:04 +0000 (10:38 +0200)]
s4:auth: make sure we have elements returned at all in authsam_expand_nested_groups()

metze

11 years agos4: Patch to implement nested group and privileges
Matthias Dieter Wallnöfer [Fri, 17 Jul 2009 01:28:58 +0000 (18:28 -0700)]
s4: Patch to implement nested group and privileges

This patch adds a function "authsam_expand_nested_groups" (calculation of rights
through expanding groups of a certain SID) which basically collects all
memberships through "memberOf" attributes. It works with either user or group SIDs.
For avoiding loops it tests on each call if the SID hasn't been added yet (through
the helper function "sids_contains_sid").
The function itself is called by "authsam_make_server_info".

11 years agotdb: don't alter tdb->flags in tdb_reopen_all()
Rusty Russell [Thu, 30 Jul 2009 02:22:39 +0000 (11:52 +0930)]
tdb: don't alter tdb->flags in tdb_reopen_all()

The flags are user-visible, via tdb_get_flags/add_flags/remove_flags.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agotdb: Reimplementation of Metze's "lib/tdb: if we know pwrite and pread are thread...
Rusty Russell [Thu, 30 Jul 2009 02:22:08 +0000 (11:52 +0930)]
tdb: Reimplementation of Metze's "lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop".

This version just wraps the reopen code, so we still re-grab the lock and do
the normal sanity checks.

The reason we do this at all is to avoid global fd limits, see:
http://forums.fedoraforum.org/showthread.php?t=210393

Note also that this whole reopen concept is fundamentally racy: if the parent
goes away before the child calls tdb_reopen_all, the database can be left
without an active lock and another TDB_CLEAR_IF_FIRST opener will clear it.
A fork_with_tdbs() wrapper could use a pipe to solve this, but it's hardly
elegant (what if there are other independent things which have similar needs?).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agotdb: Revert "lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all...
Rusty Russell [Thu, 30 Jul 2009 02:21:28 +0000 (11:51 +0930)]
tdb: Revert "lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop"

This reverts commit e17df483fbedb81aededdef5fbb6ae1d034bc2dd.

tdb_reopen_all also restores the active lock, required for TDB_CLEAR_IF_FIRST.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years ago.gitignore: ignore more generated files
Stefan Metzmacher [Thu, 30 Jul 2009 06:36:03 +0000 (08:36 +0200)]
.gitignore: ignore more generated files

metze

11 years agowinsif.idl: add definition of winsif_WinsDoScanvengingNew()
Stefan Metzmacher [Fri, 31 Jul 2009 07:27:54 +0000 (09:27 +0200)]
winsif.idl: add definition of winsif_WinsDoScanvengingNew()

metze

11 years agowinsif.idl: add definition of winsif_WinsStatusWHdl()
Stefan Metzmacher [Fri, 31 Jul 2009 07:27:39 +0000 (09:27 +0200)]
winsif.idl: add definition of winsif_WinsStatusWHdl()

metze

11 years agowinsif.idl: add definition of winsif_WinsStatusNew()
Stefan Metzmacher [Wed, 29 Jul 2009 13:39:14 +0000 (15:39 +0200)]
winsif.idl: add definition of winsif_WinsStatusNew()

metze

11 years agowinsif.idl: add definition of winsif_WinsGetDbRecsByName()
Stefan Metzmacher [Tue, 28 Jul 2009 15:12:05 +0000 (17:12 +0200)]
winsif.idl: add definition of winsif_WinsGetDbRecsByName()

metze

11 years agowinsif.idl: add definition of winsif_WinsGetBrowserNames()
Stefan Metzmacher [Fri, 31 Jul 2009 07:26:30 +0000 (09:26 +0200)]
winsif.idl: add definition of winsif_WinsGetBrowserNames()

metze

11 years agowinsif.idl: add definition of winsif_WinsSetFlags()
Stefan Metzmacher [Fri, 31 Jul 2009 07:26:03 +0000 (09:26 +0200)]
winsif.idl: add definition of winsif_WinsSetFlags()

metze

11 years agowinsif.idl: add definition of winsif_WinsDeleteWins()
Stefan Metzmacher [Fri, 31 Jul 2009 07:25:45 +0000 (09:25 +0200)]
winsif.idl: add definition of winsif_WinsDeleteWins()

metze

11 years agowinsif.idl: add definition of winsif_WinsGetBrowserNames_Old()
Stefan Metzmacher [Fri, 31 Jul 2009 07:25:28 +0000 (09:25 +0200)]
winsif.idl: add definition of winsif_WinsGetBrowserNames_Old()

metze

11 years agowinsif.idl: add definition of winsif_WinsGetNameAndAdd()
Stefan Metzmacher [Fri, 31 Jul 2009 07:25:10 +0000 (09:25 +0200)]
winsif.idl: add definition of winsif_WinsGetNameAndAdd()

metze

11 years agowinsif.idl: add definition of winsif_WinsWorkerThreadUpdate()
Stefan Metzmacher [Fri, 31 Jul 2009 07:24:53 +0000 (09:24 +0200)]
winsif.idl: add definition of winsif_WinsWorkerThreadUpdate()

metze

11 years agowinsif.idl: add definition of winsif_WinsResetCounters()
Stefan Metzmacher [Fri, 31 Jul 2009 07:24:23 +0000 (09:24 +0200)]
winsif.idl: add definition of winsif_WinsResetCounters()

metze

11 years agowinsif.idl: add definition of winsif_WinsSetPriorityClass()
Stefan Metzmacher [Fri, 31 Jul 2009 07:24:02 +0000 (09:24 +0200)]
winsif.idl: add definition of winsif_WinsSetPriorityClass()

metze

11 years agowinsif.idl: add definition of winsif_WinsPullRange()
Stefan Metzmacher [Fri, 31 Jul 2009 07:23:46 +0000 (09:23 +0200)]
winsif.idl: add definition of winsif_WinsPullRange()

metze

11 years agowinsif.idl: add definition of winsif_WinsDelDbRecs()
Stefan Metzmacher [Fri, 31 Jul 2009 07:23:25 +0000 (09:23 +0200)]
winsif.idl: add definition of winsif_WinsDelDbRecs()

metze

11 years agowinsif.idl: add definition of winsif_WinsBackup()
Stefan Metzmacher [Fri, 31 Jul 2009 07:23:06 +0000 (09:23 +0200)]
winsif.idl: add definition of winsif_WinsBackup()

metze

11 years agowinsif.idl: add definition of winsif_WinsTerm()
Stefan Metzmacher [Fri, 31 Jul 2009 07:22:48 +0000 (09:22 +0200)]
winsif.idl: add definition of winsif_WinsTerm()

metze

11 years agowinsif.idl: add definition of winsif_WinsGetDbRecs()
Stefan Metzmacher [Fri, 31 Jul 2009 07:22:18 +0000 (09:22 +0200)]
winsif.idl: add definition of winsif_WinsGetDbRecs()

metze

11 years agowinsif.idl: add definition of winsif_WinsDoScavenging()
Stefan Metzmacher [Fri, 31 Jul 2009 07:21:38 +0000 (09:21 +0200)]
winsif.idl: add definition of winsif_WinsDoScavenging()

metze

11 years agowinsif.idl: add definition of winsif_WinsDoStaticInit()
Stefan Metzmacher [Fri, 31 Jul 2009 07:20:52 +0000 (09:20 +0200)]
winsif.idl: add definition of winsif_WinsDoStaticInit()

metze

11 years agowinsif.idl: add definition of winsif_WinsTrigger()
Stefan Metzmacher [Wed, 29 Jul 2009 13:44:06 +0000 (15:44 +0200)]
winsif.idl: add definition of winsif_WinsTrigger()

metze

11 years agowinsif.idl: add definition of winsif_WinsStatus()
Stefan Metzmacher [Wed, 29 Jul 2009 13:38:01 +0000 (15:38 +0200)]
winsif.idl: add definition of winsif_WinsStatus()

metze

11 years agowinsif.idl: add definition of WinsRecordAction()
Stefan Metzmacher [Wed, 29 Jul 2009 13:35:45 +0000 (15:35 +0200)]
winsif.idl: add definition of WinsRecordAction()

metze

11 years agowinsif.idl: add missing function calls
Stefan Metzmacher [Tue, 28 Jul 2009 12:04:50 +0000 (14:04 +0200)]
winsif.idl: add missing function calls

metze

11 years agos4:librpc: rename wins.idl => winsif.idl
Stefan Metzmacher [Tue, 28 Jul 2009 12:07:59 +0000 (14:07 +0200)]
s4:librpc: rename wins.idl => winsif.idl

metze

11 years agolibrpc: rerun "make idl"
Stefan Metzmacher [Thu, 30 Jul 2009 16:56:42 +0000 (18:56 +0200)]
librpc: rerun "make idl"

metze

11 years agopidl:Samba3/ClientNDR: add support tevent_req based _send/recv() client functions
Stefan Metzmacher [Thu, 30 Jul 2009 14:05:52 +0000 (16:05 +0200)]
pidl:Samba3/ClientNDR: add support tevent_req based _send/recv() client functions

metze

11 years agopidl:Samba3/ClientNDR: rename ParseFunction => ParseFunctionSync and add ParseFunctio...
Stefan Metzmacher [Thu, 30 Jul 2009 13:29:02 +0000 (15:29 +0200)]
pidl:Samba3/ClientNDR: rename ParseFunction => ParseFunctionSync and add ParseFunction as glue

This prepares the following ParseFunctionAsync* commits.

metze

11 years agopidl:Samba3/ClientNDR: allow passing optional variable prefixes to ParseOutputArgument()
Stefan Metzmacher [Thu, 30 Jul 2009 13:14:25 +0000 (15:14 +0200)]
pidl:Samba3/ClientNDR: allow passing optional variable prefixes to ParseOutputArgument()

metze

11 years agopidl/Samba4.pm: allow an optional prefix passed to DeclLong()
Stefan Metzmacher [Fri, 31 Jul 2009 06:58:36 +0000 (08:58 +0200)]
pidl/Samba4.pm: allow an optional prefix passed to DeclLong()

metze

11 years agos3:rpc_client: add dispatch_send/recv() to struct rpc_pipe_client
Stefan Metzmacher [Thu, 30 Jul 2009 12:31:55 +0000 (14:31 +0200)]
s3:rpc_client: add dispatch_send/recv() to struct rpc_pipe_client

metze

11 years agoIncrease the max_grp value to 128 (AIX NGROUPS_MAX value) instead of 32 to allow...
Yannick Bergeron [Thu, 30 Jul 2009 23:31:24 +0000 (19:31 -0400)]
Increase the max_grp value to 128 (AIX NGROUPS_MAX value) instead of 32 to allow AIX to call sys_getgrouplist only once

11 years agopidl:Samba4/Python: fix mapType() => mapTypeName()
Stefan Metzmacher [Fri, 31 Jul 2009 08:14:09 +0000 (10:14 +0200)]
pidl:Samba4/Python: fix mapType() => mapTypeName()

This tries to fix commit 8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd.

The problem was:

Undefined subroutine &Parse::Pidl::Samba4::Python::mapType called at /home/metze/master4/pidl/lib/Parse/Pidl/Samba4/Python.pm line 848.

Jelmer: please check this.

metze

11 years agoTidy up treatment of ctime.
Jeremy Allison [Thu, 30 Jul 2009 21:27:32 +0000 (14:27 -0700)]
Tidy up treatment of ctime.
Jeremy.

11 years agoFix bug #6529 - Offline files conflict with Vista and Office 2003.
Jeremy Allison [Thu, 30 Jul 2009 20:19:26 +0000 (13:19 -0700)]
Fix bug #6529 - Offline files conflict with Vista and Office 2003.
We need to send a notify message when a timestamp is changed that
can't be reflected in the underlying POSIX filesystem.
Jeremy.

11 years agoRemove the extraneous logic in smb_set_info_standard - we
Jeremy Allison [Thu, 30 Jul 2009 20:16:40 +0000 (13:16 -0700)]
Remove the extraneous logic in smb_set_info_standard - we
do the time twiddling logic at the smb_set_file_time level.
Jeremy.

11 years agoSMB_INFO_STANDARD is not a valid info level on set,
Jeremy Allison [Thu, 30 Jul 2009 20:13:23 +0000 (13:13 -0700)]
SMB_INFO_STANDARD is not a valid info level on set,
and was being read incorrectly anyway. Remove.
Jeremy.

11 years agorealloc() has that horrible overloaded free semantic when size is 0:
Rusty Russell [Thu, 30 Jul 2009 20:10:33 +0000 (13:10 -0700)]
realloc() has that horrible overloaded free semantic when size is 0:
current code does a free of the old record in this case, then fail.

11 years agoIf the record is at the end of the database, pretending it has length 1
Rusty Russell [Thu, 30 Jul 2009 20:09:33 +0000 (13:09 -0700)]
If the record is at the end of the database, pretending it has length 1
might take us out-of-bounds.  Only pretend to be length 1 for the malloc.

11 years agopython: Cope with the dom_sid2 alias in pidl's python generating code.
Jelmer Vernooij [Thu, 30 Jul 2009 18:28:29 +0000 (20:28 +0200)]
python: Cope with the dom_sid2 alias in pidl's python generating code.

This fixes some problems in the samr Python bindings that pidl was
(correctly) warning about.

11 years agoDCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.
Jelmer Vernooij [Thu, 30 Jul 2009 18:04:42 +0000 (20:04 +0200)]
DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.
 Use py_talloc_reference in DCE/RPC code, fixes
access to SAMR pipe.