summaryrefslogtreecommitdiffstats
path: root/source4/rpc_server
Commit message (Collapse)AuthorAgeFilesLines
...
* auth and s4-rpc_server: Do not use features we currently can't implement ↵Simo Sorce2012-05-231-0/+6
| | | | with MIT Kerbros build
* Fix direct access to krb5_principal structureSimo Sorce2012-05-041-2/+4
|
* Move kdc_get_policy helper in the lsa server where it belongs.Simo Sorce2012-04-202-2/+26
| | | | | | | | | | | | | | | | This was used in only 2 places, db-glue.c and the lsa server. In db-glue.c it is awkward though, as it forces to use an unconvenient lsa structure and conversions from time_t to nt_time only to have nt_times converted back to time_t for actual use. This is silly. Also the kdc-policy file was a single funciton library, that's just ridiculous. The loadparm helper is all we need to keep the values consistent, and if we ever end up doing something with group policies we will care about it when it's the time. the code would have to change quite a lot anyway. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Fri Apr 20 01:53:37 CEST 2012 on sn-devel-104
* s4-rpc: dnsserver: Fix IPv6 reverse zone handlingAmitay Isaacs2012-03-211-0/+7
| | | | Thanks to Marcel Ritter <marcel.ritter@rrze.fau.de> for the patch.
* libndr: Rename policy_handle_empty to ndr_policy_handle_empty.Jelmer Vernooij2012-03-201-1/+1
| | | 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-202-8/+8
| | | | | ndr_ prefix. This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* s4-rpc: dnsserver: Fix the typo in comparing two DNS recordsAmitay Isaacs2012-03-021-2/+2
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Mar 2 10:27:41 CET 2012 on sn-devel-104
* s4-rpc: dnsserver: Update data type for TXT DNS recordsAmitay Isaacs2012-03-021-6/+25
|
* s4-netlogond: Fix use of uninitialised value dns_nameAndrew Bartlett2012-02-271-19/+8
| | | | | | | | The GET_CHECK_STR macro (now unrolled) did not initialise the trusts->array[n].dns_name when the value was not set. New tests for our trusted domains code create domain trusts without a DNS domain name. Found by the autobuild flakey build detector. Andrew Bartlett
* dcerpc_server: Add 'modulesdir' variable to pkg-config file.Jelmer Vernooij2012-02-231-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Feb 23 16:26:25 CET 2012 on sn-devel-104
* s4-rpc_server: Fix search for existing trust to actually look for the dns nameAndrew Bartlett2012-01-261-1/+1
| | | | | | | | | Found by a eagle-eyed user. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Jan 26 08:39:47 CET 2012 on sn-devel-104
* s4-rpc:dnsserver: DNS names are case insensitiveAmitay Isaacs2012-01-123-17/+17
|
* s4-rpc:dnsserver: Do not replace @ with zone_name in update operationAmitay Isaacs2012-01-061-1/+6
| | | | This fixes the problem when updating DNS record for '@' or domain name.
* s4:netlogon RPC server - dcesrv_netr_DsRGetSiteName - add a small explainationMatthias Dieter Wallnöfer2011-12-231-0/+5
| | | | | | NETLOGON pipe is only thought for DCs. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:drsuapi/getncchanges: the default for isRecycled is FALSEStefan Metzmacher2011-12-231-1/+1
| | | | | | | metze Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Dec 23 09:30:09 CET 2011 on sn-devel-104
* s4-drsuapi: we store boolean in upppercase so we need to test them in uppercaseMatthieu Patou2011-12-231-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:rpc-dnsserver: Set the rank for the new DNS record correctlyAmitay Isaacs2011-12-231-0/+8
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Dec 23 07:56:34 CET 2011 on sn-devel-104
* s4:rpc-dnsserver: Add commentsAmitay Isaacs2011-12-231-0/+7
|
* s4:rpc-dnsserver: Make sure that zone information is filled inAmitay Isaacs2011-12-231-0/+10
| | | | | This fixes the problem of NULL zone in zone operations when specific zone is specified and no zone filter is specified.
* s4:rpc-dnsserver: Implement zone management RPC operationsAmitay Isaacs2011-12-233-2/+436
| | | | | | | - ZoneCreate operation to create zone. - DeleteZoneFromDs operation to delete zone When a zone is deleted, all the records in that zone are also deleted.
* s4:rpc-dnsserver: Add multiple DNS records in a single operationAmitay Isaacs2011-12-231-11/+16
| | | | | | This allows to add dnsNode objectclass with multiple DNS records in a single operation. Useful for creating @ record which has NS and SOA records.
* s4:rpc-dnsserver: Use handy macros for error checkingAmitay Isaacs2011-12-231-11/+3
|
* s4:rpc-dnsserver: Implement DirectoryPartitionInfo RPC operationAmitay Isaacs2011-12-233-1/+151
|
* s4:rpc-dnsserver: Fix the enumeration of DNS recordsAmitay Isaacs2011-12-231-0/+10
| | | | | If a node has data and children, do not return the children unless the node is the top level node.
* s4:rpc-dnsserver: Use cached zone information to get rootserversAmitay Isaacs2011-12-231-9/+6
| | | | | This removes the hardcoded search for DC=RootDNSServers, and uses the cached zone information.
* s4:rpc-dnsserver: Implement EnumDirectoryPartition operationAmitay Isaacs2011-12-232-1/+36
|
* s4:rpc-dnsserver: Cache DNS partition informationAmitay Isaacs2011-12-234-89/+151
| | | | | This information will be used for the RPC calls for partition information.
* s4:rpc-dnsserver: If a zone is reverse zone, set the fReverse flagAmitay Isaacs2011-12-232-3/+14
| | | | And use fReverse flag in the enumeration of zones.
* s4:rpc-dnsserver: For PTR records, use dns_name_equal instead of strcmp to ↵Amitay Isaacs2011-12-231-1/+1
| | | | compare
* s4:drsuapi/getncchanges: return WERR_NOMEM if talloc_array() failsStefan Metzmacher2011-12-191-0/+3
| | | | metze
* s4-drs: introduce a timeout in the getncchanges processing to always return ↵Matthieu Patou2011-12-191-6/+27
| | | | | | | something in less than x seconds Signed-off-by: Andrew Tridgell <tridge@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-drs: avoid calling unecesserly ldb_msg_find_attr_as_* as this call in ↵Matthieu Patou2011-12-191-26/+45
| | | | | | | | | | | | unefficient Current implementation of ldb_msg_find_attr_as_* iterate on the list of attributes returned by the search and make a string comparison. As we sorting the array of messages / guids we tend to call this function many times. By storing the GUID and the USN in a separate structure we are sure to call this function only once per attribute and object. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-lsarpc handle more info levels in SetInfoTrustedDomain callsAndrew Bartlett2011-12-122-4/+20
| | | | | | | This uses the very helpful conversion functions written for the s3 lsa server and places these in common. Andrew Bartlett
* s4-lsarpc Fix segfaults found by the samba4.rpc.lsa.forest testAndrew Bartlett2011-12-121-14/+17
| | | | This allows us to move this test to knownfail from skip
* Revert making public of the samba-module library.Jelmer Vernooij2011-12-031-6/+6
| | | | | | | | | | | | | | | This library was tiny - containing just two public functions than were themselves trivial. The amount of overhead this causes isn't really worth the benefits of sharing the code with other projects like OpenChange. In addition, this code isn't really generically useful anyway, as it can only load from the module path set for Samba at configure time. Adding a new library was breaking the API/ABI anyway, so OpenChange had to be updated to cope with the new situation one way or another. I've added a simpler (compatible) routine for loading modules to OpenChange, which is less than 100 lines of code. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 3 08:36:33 CET 2011 on sn-devel-104
* s4:netlogon RPC server - DsRGetDcNameEx - set the DNS name flags correctlyMatthias Dieter Wallnöfer2011-11-271-0/+14
| | | | | | | | The rules are explained in MS-NRPC 2.2.1.2.1. Patch inspired by Matthieu Patou. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-netlogon: return WERR_NO_SUCH_DOMAIN instead of WERR_DS_UNAVAILABLE if we ↵Matthieu Patou2011-11-271-1/+1
| | | | | | | are unable to translate the domain to a dn Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-drs: check if we have a domain level >= 2k8r2 as before the isRecycled do ↵Matthieu Patou2011-11-131-7/+24
| | | | | | | not exists and so is always False Having a false value cause the link on removed attribute to be always returned which is what we try to avoid.
* s4-dnsserver: Fix enumeration of zones in ComplexOperation RPC callAmitay Isaacs2011-11-081-49/+84
| | | | | | zone_request_flags are interpreted in different groups rather than a single group. This correctly returns 0 zones when there are no reverse zones and DNS_ZONE_REQUEST_REVERSE is set in zone_request_flags.
* s4-dnsserver: Handle the case when the dns name is NULLAmitay Isaacs2011-11-021-0/+4
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dnsserver: Build a dns name tree for correct enumerationAmitay Isaacs2011-11-023-122/+274
| | | | | | | | | | The result of EnumRecords/EnumRecords2 RPC calls, is a list of dns records that are one level below in the name hierarchy starting from the search name. This patch builds a tree of names to get the list of records one level below the search names and correctly count the number of child records for each of those. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dnsserver: List dns zones matching the search filterAmitay Isaacs2011-11-021-26/+96
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dnsserver: Compare two dns names using last uncommon name componentsAmitay Isaacs2011-11-021-2/+26
| | | | | | | | | | | | | | When search_name is not NULL, use the second last component of name instead of the last name. e.g. To compare following two names, _ldap._tcp.gc, and _ldap._tcp.Default-First-Site-Name._sites.gc with search_name=NULL, it is gc and gc with search_name=gc, it is _tcp and _sites Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dnsserver: Set DNS_DP_AUTOCREATED flag for the zone informationAmitay Isaacs2011-11-021-1/+1
| | | | | | This make the zone information similar to windows (W2K8r2). Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util Rename samba_modules_load -> samba_module_init_fns_for_subsystemAndrew Bartlett2011-10-281-1/+1
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename samba_init_module_fns_run -> samba_module_init_fns_runAndrew Bartlett2011-10-281-2/+2
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename samba_init_module_fn -> samba_module_init_fnAndrew Bartlett2011-10-281-2/+2
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Split samba-modules library into public and private partsAndrew Bartlett2011-10-281-1/+1
| | | | | | | This will allow OpenChange to get at the symbols it needs, without exposing any more of this as a public API than we must. Andrew Bartlett
* lib/util Rename load_samba_modules -> samba_modules_loadAndrew Bartlett2011-10-281-1/+1
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename run_init_functions -> samba_init_module_fns_runAndrew Bartlett2011-10-281-2/+2
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett