summaryrefslogtreecommitdiff
path: root/librpc
Commit message (Collapse)AuthorAgeFilesLines
* smbd: Remove pre-allocation of ACL array in sys_acl_init()Andrew Bartlett2012-09-121-1/+0
| | | | | | | | Instead, this is just handled with realloc in sys_acl_create_entry() This allows us to remove the size element from the SMB_ACL_T. Andrew Bartlett
* smbd-posix_acls: Use a IDL union to store the ACL entryAndrew Bartlett2012-09-121-5/+21
| | | | | | | This is a clearer, long-term-stable structure we can hash without risking it changing. Andrew Bartlett
* s4 dns: Create IDL entry for TSIG-like record needed for signature checkKai Blin2012-09-051-0/+14
|
* s4 dns: Revert erroneous push from wrong branchKai Blin2012-09-051-14/+0
| | | | | | | I've pushed the wrong branch for this, sorry about that. Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Wed Sep 5 14:10:54 CEST 2012 on sn-devel-104
* s4 dns: Handle GSS-TSIG signaturesKai Blin2012-09-051-0/+14
|
* SEC_RIGHTS_DIR_PRIV_BACKUP and SEC_RIGHTS_DIR_PRIV_RESTORE aren't used ↵Jeremy Allison2012-08-311-8/+7
| | | | | | | | anywhere. Remove (can re-add if needed). Ensure the privilege rights are always specific rights, not generic. By the time the privilege rights are examined, we've already mapped from generic to specific in the access_mask.
* s4-python: Complete python bindings for idmap.idlAndrew Bartlett2012-08-221-0/+5
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 22 03:08:51 CEST 2012 on sn-devel-104
* s4-python: complete python bindigns for smb_acls.idlAndrew Bartlett2012-08-221-0/+5
|
* librpc/idl: Fix acl array definition in smb_acl_tAndrew Bartlett2012-08-161-1/+1
|
* librpc/idl: Make smb_acl_t public so we can pull/push it as a blobAndrew Bartlett2012-08-151-1/+1
|
* s3-smbd: Move smb_acl_t declaration to smb_acl.idlAndrew Bartlett2012-08-153-1/+69
| | | | | | | | This will allow us to marshall this into and from an NDR blob on disk, which will allow us to fake up ACL support during make test, and to test the NT ACL emulation using python bindings via the VFS. Andrew Bartlett
* build: rename security → samba-securityBjörn Jacke2012-08-101-1/+1
| | | | | | | | | there is a libsecurity on OSF1 which clasheѕ with our security lib. see bug #9023. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Aug 10 14:22:21 CEST 2012 on sn-devel-104
* s4:librpc/rpc: add DCERPC_SCHANNEL_AES supportStefan Metzmacher2012-07-171-0/+3
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* ntprinting: mark the final 4 byte null pointer for printer data in ↵Günther Deschner2012-07-061-0/+1
| | | | | | ndr_pull_ntprinting_printer as read. Guenther
* ndr: fix push/pull DATA_BLOB with NDR_NOALIGNDavid Disseldorp2012-07-061-12/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change addresses bug 9026. There are 3 use cases for DATA_BLOB marshalling/unmarshalling: 1) ndr_push_DATA_BLOB and ndr_pull_DATA_BLOB when called with LIBNDR_FLAG_ALIGN* alignment flags set, are used to push/pull padding bytes _only_. The length is determined by the alignment required and the current ndr offset. e.g. dcerpc.idl: typedef struct { ... [flag(NDR_ALIGN8)] DATA_BLOB _pad; } dcerpc_request; 2) When called with the LIBNDR_FLAG_REMAINING flag, all remaining bytes in the ndr buffer are pushed/pulled. e.g. dcerpc.idl: typedef struct { ... [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier; } dcerpc_request; 3) When called without alignment flags, push/pull a uint32 length _and_ a corresponding byte array to/from the ndr buffer. e.g. drsblobs.idl typedef [public] struct { ... DATA_BLOB data; } DsCompressedChunk; The fix for bug 8373 changed the definition of "alignment flags", such that when called with LIBNDR_FLAG_NOALIGN ndr_push/pull_DATA_BLOB behaves as (1: padding bytes) rather than (3: uint32 length + byte array). This breaks marshalling/unmarshalling for the following structures. eventlog.idl: typedef [flag(NDR_NOALIGN|NDR_PAHEX),public] struct { ... DATA_BLOB sid; ... } eventlog_Record_tdb; ntprinting.idl: typedef [flag(NDR_NOALIGN),public] struct { ... DATA_BLOB *nt_dev_private; } ntprinting_devicemode; typedef [flag(NDR_NOALIGN),public] struct { ... DATA_BLOB data; } ntprinting_printer_data; Signed-off-by: Günther Deschner <gd@samba.org>
* ntprinting: make decode_ntprinting helpers public in idl.Günther Deschner2012-07-061-3/+3
| | | | Guenther
* librpc/ndr: Initilaise the remainder of struct dom_sid after a pullAndrew Bartlett2012-06-281-0/+1
| | | | | | | | This copes with the fact that r->sub_auths is a fixed-size array, not an allocated pointer, and so will still have some bytes no filled in if the sid did not have a MAX_SUB_AUTHS sub-authorities. Andrew Bartlett
* s3:librpc: add smbXsrv.idlStefan Metzmacher2012-06-251-1/+1
| | | | metze
* auth: Use only security_token_is_system to determine that a user is SYSTEMAndrew Bartlett2012-06-191-5/+0
| | | | | | | | | | This removes the duplication on how to detect that a user is system in Samba now that the smbd system account is also only SID_NT_SYSTEM we can use the same check everywhere. Andrew Bartlett Signed-off-by: Andreas Schneider <asn@samba.org>
* auth.idl: mark confidential attributes as [noprint]Stefan Metzmacher2012-06-151-4/+4
| | | | | | | | We should allow NDR_PRINT_DEBUG() to log them. TODO: we could add some more magic which logs it at level 100. metze
* make librpc/build_idl.sh more portableBjörn Jacke2012-06-141-1/+2
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 14 23:57:40 CEST 2012 on sn-devel-104
* idl: add File Server Remote VSS Protocol idlDavid Disseldorp2012-06-083-3/+126
| | | | | MS-FSRVP preview documents used as reference. H_ERROR codes should be moved to a more generic file.
* Revert "s3: Fix bug 8371"Stefan Metzmacher2012-06-031-2/+0
| | | | | | | | | | This reverts commit 2642f385887fbd3aecd4286a4d6223a21d981714. This is not needed anymore, as 035342c11719d1daa647c0b2ae7cec27a969f83a "Fix bug #8373 - Can't join XP Pro workstations to 3.6.1 DC." is the more generic fix for the problem. metze
* librpc: Fix an incompatible pointer type warningVolker Lendecke2012-05-301-2/+4
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* librpc: Fix some typosVolker Lendecke2012-05-301-3/+3
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* Fix bug #8373 - Can't join XP Pro workstations to 3.6.1 DC.Jeremy Allison2012-05-252-5/+11
| | | | | | | Treat LIBNDR_FLAG_NOALIGN and LIBNDR_FLAG_REMAINING the same as the other align flags - make them mutually exclusive. Combined work from Metze, Günther and Jeremy.
* s4 dns: Add TSIG and TKEY records to idlKai Blin2012-05-081-11/+56
|
* s4-messaging: Fill in the whole server_id in all use casesAndrew Bartlett2012-04-301-0/+3
| | | | | | | | | | | | This started per https://bugzilla.samba.org/show_bug.cgi?id=8872#c4 and avoids any possible collision with a different process. We also need to ensure that across a Samba installation on a single node that id.vnn is the same. Samba4 previously used 0, while Samba3 used NONCLUSTER_VNN. When a message is sent between these 'different' nodes, the error NT_STATUS_INVALID_DEVICE_REQUEST is raised. Andrew Bartlett
* idl: fix the charset for the source_dsa_address in DsReplicaDel callMatthieu Patou2012-04-221-1/+1
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Apr 22 03:00:06 CEST 2012 on sn-devel-104
* librpc: Make finding newest pidl file more portableVolker Lendecke2012-04-191-9/+1
| | | | | | FreeBSD find does not support the -printf argument. David, please check if this still work for you!
* s3: New notify implementationVolker Lendecke2012-04-171-0/+13
| | | | | | | | | | | | From notify_internal.c: /* * The notify database is split up into two databases: One * relatively static index db and the real notify db with the * volatile entries. */ This change is necessary to make notify scale better in a cluster
* build: rebuild idl if the pidl compiler is changedDavid Disseldorp2012-04-161-5/+20
| | | | | | | | | | | | | | | | In determining whether to compile a given .idl source file, build_idl.sh currently checks: a) that all build output files exist b) build output files are newer than their corresponding .idl source The .idl is rebuilt if either of the above conditions is false. This logic does not catch the case where the pidl compiler itself is changed. An IDL rebuild should occur in such a case. https://bugzilla.samba.org/show_bug.cgi?id=8865 Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Mon Apr 16 16:29:45 CEST 2012 on sn-devel-104
* ndr: Update ABI.Jelmer Vernooij2012-03-261-0/+245
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Mar 26 19:58:25 CEST 2012 on sn-devel-104
* wafsamba: Cope with slight differences in gdb output regarding incomplete ↵Jelmer Vernooij2012-03-261-245/+0
| | | | | | sequences. Bug: https://bugzilla.samba.org/show_bug.cgi?id=8820
* Add ABI file for libndr.Jelmer Vernooij2012-03-262-2/+249
|
* librpc/wscript_build: Fix formatting.Jelmer Vernooij2012-03-201-2/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Mar 20 15:26:14 CET 2012 on sn-devel-104
* Move NS_GUID_string and NS_GUID_from_string to dsdb-common.Jelmer Vernooij2012-03-202-54/+0
|
* libndr: Define trivial is_valid_policy_hnd as macro.Jelmer Vernooij2012-03-202-6/+1
| | | This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* libndr: Rename policy_handle_empty to ndr_policy_handle_empty.Jelmer Vernooij2012-03-202-3/+3
| | | This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* libndr: Rename policy_handle_equal to ndr_policy_handle_equal.Jelmer Vernooij2012-03-202-2/+2
| | | This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* libndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ↵Jelmer Vernooij2012-03-203-13/+14
| | | | | ndr_ prefix. This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* librpc/wscript_build: Santizize formatting.Jelmer Vernooij2012-03-201-384/+387
|
* idl: add offload data transfer ioctl typesDavid Disseldorp2012-03-151-0/+57
| | | | | | | | | | | | | | | | | For future use in handling FSCTL_OFFLOAD_READ, FSCTL_OFFLOAD_WRITE and IOCTL_STORAGE_QUERY_PROPERTY requests new to Windows 8. Based on preliminary data structure documentation from: http://msdn.microsoft.com/en-us/library/windows/hardware/hh451101%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/hardware/hh451122%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/hh449428%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/hardware/hh451469%28v=vs.85%29.aspx Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Lars Müller <lars@samba.org> Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Thu Mar 15 18:40:11 CET 2012 on sn-devel-104
* ndr: dnsserver: Add pull and push functions for DNS_RPC_RECORD_STRINGAmitay Isaacs2012-03-021-0/+37
|
* idl: dnsserver: Add DNS_RPC_RECORD_STRING data type for TXT DNS recordAmitay Isaacs2012-03-021-2/+8
|
* ndr: Add NDR pull, push, print functions for dnsp_string_listAmitay Isaacs2012-03-021-0/+53
|
* idl: dnsp: Add dnsp_string_list data type for TXT DNS recordAmitay Isaacs2012-03-021-1/+6
|
* ndr: Fix NDR push function for dnsp_stringAmitay Isaacs2012-03-021-3/+2
| | | | Push the actual length of the string not including null-termination.
* ndr: Fix the error messages, add correct data type nameAmitay Isaacs2012-03-021-6/+6
|
* libndr: Add ndr_map_error2errnoVolker Lendecke2012-02-132-0/+26
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 13 15:06:29 CET 2012 on sn-devel-104