summaryrefslogtreecommitdiff
path: root/source4/cldap_server
Commit message (Collapse)AuthorAgeFilesLines
* source4/smbd: refactor the process model for preforkGary Lockyer2017-10-191-1/+6
| | | | | | | | | | | | | | | | | | Refactor the process model code to allow the addition of a prefork process model. - Add a process context to contain process model specific state - Add a service details structure to allow service to indicate which process model options they can support. In the new code the services advertise the features they support to the process model. The process model context is plumbed through to allow the process model to keep track of the supported options, and any state the process model may require. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* s4: Add TALLOC_CTX * to register_server_service().Jeremy Allison2017-05-111-1/+1
| | | | | | | | Use the passed in context from callers. Remove one talloc_autofree_context(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* lib: modules: Change XXX_init interface from XXX_init(void) to ↵Jeremy Allison2017-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | XXX_init(TALLOC_CTX *) Not currently used - no logic changes inside. This will make it possible to pass down a long-lived talloc context from the loading function for modules to use instead of having them internally all use talloc_autofree_context() which is a hidden global. Updated all known module interface numbers, and added a WHATSNEW. Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 22 01:17:00 CEST 2017 on sn-devel-144
* Avoid including libds/common/roles.h in public loadparm.h header.Jelmer Vernooij2016-01-131-0/+1
| | | | | | Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-By: Andrew Bartlett <abartlet@samba.org> Reviewed-By: Stefan Metzmacher <metze@samba.org>
* s3/s4: smbd, rpc, ldap, cldap, kdc services.Jeremy Allison2014-06-071-1/+7
| | | | | | | | | | | | | | Allow us to start if we bind to *either* :: or 0.0.0.0. Allows us to cope with systems configured as only IPv4 or only IPv6. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-By: Amitay Isaacs <amitay@gmail.com> Reviewed-By: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Jun 7 01:01:44 CEST 2014 on sn-devel-104
* s4:lib/socket: simplify iface_list_wildcard() and its callersStefan Metzmacher2014-03-071-1/+1
| | | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10464 Signed-off-by: Stefan Metzmacher <metze@samba.org> Change-Id: Ib317d71dea01fc8ef6b6a26455f15a8a175d59f6 Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Mar 7 02:18:17 CET 2014 on sn-devel-104
* cldap: quieten error when abandon packet is sentGarming Sam2013-12-061-0/+7
| | | | | | | | | | | | The specification indicates that no response needs to be sent when receiving an abandon request packet. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Dec 6 07:13:29 CET 2013 on sn-devel-104
* s4:dsdb: Move cldap netlogon functions into samdb/ldb_modulesBenjamin Franzke2013-11-113-487/+1
| | | | | | | | As netlogon is handled by the samdb now, the corresponding functions should live there as well. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
* s4:cldap_server: Do not handle netlogon ourself anymoreBenjamin Franzke2013-11-113-62/+5
| | | | | | | | | Netlogon is now handled by the ldb rootdse module. The netlogon files will be moved to dsdb in the next commit. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
* s4:cldap_server: Move netlogon parsing into utility functionBenjamin Franzke2013-11-112-34/+73
| | | | | | | To be used later by netlogon-request over ldap. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
* s4: Fix a -Wunused-value warningVolker Lendecke2012-09-261-1/+1
| | | | | Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Sep 26 21:52:00 CEST 2012 on sn-devel-104
* s4:cldap_server: only return DS_SERVER_*TIMESERV if "ntp_signd" is usedStefan Metzmacher2012-08-161-4/+6
| | | | metze
* s4:cldap_server: set DS_SERVER_SELECT_SECRET_DOMAIN_6 if we're a RODCStefan Metzmacher2012-08-161-5/+9
| | | | metze
* lib/param: Create a seperate server role for "active directory domain ↵Andrew Bartlett2012-06-151-1/+1
| | | | | | | | | | | | | | | controller" This will allow us to detect from the smb.conf if this is a Samba4 AD DC which will allow smarter handling of (for example) accidentially starting smbd rather than samba. To cope with upgrades from existing Samba4 installs, 'domain controller' is a synonym of 'active directory domain controller' and new parameters 'classic primary domain controller' and 'classic backup domain controller' are added. Andrew Bartlett
* s4:cldap_server/netlogon.c: it is wrong to specify "\\" in front of the hostnameStefan Metzmacher2012-01-041-2/+6
| | | | | | | | | | | | For LOGON_SAM_LOGON_RESPONSE_EX and LOGON_SAM_LOGON_USER_UNKNOWN_EX, pdc name is not in unc path form. [MS-ADTS] 7.3.1.* uses UnicodeLogonServer, which seems to be in unc form, while NetbiosComputerName is not in unc form. Bases on a patch from Matthias Dieter Wallnöfer <mdw@samba.org>. metze
* s4-netlogon: Revert patch f02e4ebfafa6e5911e3fe744b1780527ab12c970Amitay Isaacs2011-12-141-5/+0
| | | | | | | DS_DNS_CONTROLLER bit is set if DC's domain name is dns name. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Dec 14 07:31:05 CET 2011 on sn-devel-104
* s4-cldap: Set DS_DNS_CONTROLLER bit if we are running RPC dnsserverAmitay Isaacs2011-12-131-0/+5
| | | | | Till we have internal DNS server which appears in services, use endpoint services to find out if we are running dns server.
* s4:netlogon RPC server - DsRGetDcNameEx - set the DNS name flags correctlyMatthias Dieter Wallnöfer2011-11-271-12/+0
| | | | | | | | 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:cldap_server/netlogon.c - DS_SERVER_CLOSEST handlingMatthias Dieter Wallnöfer2011-11-271-2/+5
| | | | | | | | DS_SERVER_CLOSEST is only set when the client and server site coincide. MS-NRPC 2.2.1.2.1 Signed-off-by: Stefan Metzmacher <metze@samba.org>
* libcli/cldap: don't pass tevent_context to cldap_socket_init()Stefan Metzmacher2011-10-101-1/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104
* libcli/cldap: pass tevent_context to cldap_set_incoming_handler()Stefan Metzmacher2011-10-101-1/+2
| | | | metze
* s4-cldap: fixed cldap search based on dom_sidAndrew Tridgell2011-09-051-15/+4
| | | | | | we were not filling in the sid pointer correctly for the ldb_search Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* cli_cldap: Lowercase name.Jelmer Vernooij2011-07-261-1/+1
|
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-201-1/+1
| | | | | | | | | | | | The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
* s4-cldap: fixed the CLDAP response for IPv6 clientsAndrew Tridgell2011-06-071-6/+8
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Jun 7 08:57:48 CEST 2011 on sn-devel-104
* s4-netlogon: force an IPv4 addressAndrew Tridgell2011-06-071-1/+1
| | | | | this interface is currently V4 only, don't try and return a V6 address in a V4 structure
* s4-ipv6: update callers to load_interface_list()Andrew Tridgell2011-06-062-2/+2
|
* s4-ipv6: use iface_list_wildcard() to listen on IPv6Andrew Tridgell2011-06-061-2/+7
| | | | | when we need to listen on a wildcard address, we now listen on a list of sockets, usually 0.0.0.0 and ::
* s4-interfaces Rename interfaces code so not to conflict with source3/Andrew Bartlett2011-05-082-7/+7
| | | | | | | | | The iface_count, iface_n_bcast, and load_interfaces functions conflicted with functions of the same name in source3, so the source4 functions were renamed. Hopefully we can actually wrap one around the other in future. Andrew Bartlett
* source4/: Fix prototypes for all functions in various subsystems.Jelmer Vernooij2011-03-191-0/+2
|
* Fix some typesJelmer Vernooij2011-02-281-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
* build: moved libds/common/flag_mapping.c into a common subsystemAndrew Tridgell2011-02-241-0/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-103-6/+6
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* cldap: Build as shared module.Jelmer Vernooij2010-11-151-0/+1
|
* ldbsamba: Lowercase library name.Jelmer Vernooij2010-11-071-1/+1
|
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-24/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* s4: Drop duplicate 'lib' prefix for private libraries.Jelmer Vernooij2010-10-261-1/+1
|
* s4: Rename LIBNETIF to libnetif.Jelmer Vernooij2010-10-231-1/+1
|
* cldapd: Add missing dependency on ldbsamba.Jelmer Vernooij2010-10-101-1/+1
|
* samdb: Add flags argument to samdb_connect().Jelmer Vernooij2010-10-101-1/+1
|
* s4-netlogon: fixed logic for setting DS_SERVER_WRITABLEAndrew Tridgell2010-09-151-1/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-cldap: don't set the writable bit when we are a RODCAndrew Tridgell2010-09-151-2/+6
| | | | | | | when we are a RODC, don't respond with the writable bit in the server type response of netlogon requests Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:cosmetic - the SID attribute is called objectSid - not objectSIDMatthias Dieter Wallnöfer2010-09-131-1/+1
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-162-15/+15
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:cldap_server/rootdse.c - simplify the code a bitMatthias Dieter Wallnöfer2010-06-181-13/+9
| | | | | Remove "NULL"-content variables and use "NULL"s directly as arguments. Add some linewraps where needed.
* s4:cldap_server.c - here the counter variable should be "signed"Matthias Dieter Wallnöfer2010-06-181-2/+1
|
* s4:libcli/ldap Rename ldap.h to libcli_ldap.hAndrew Bartlett2010-05-213-2/+1
| | | | | | | It is a problem if a samba header is called ldap.h if we also want to use OpenLDAP's ldap.h Andrew Bartlett
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-7/+3
|
* s4:cldap_server/netlogon.c - handle the domain SID correctlyMatthias Dieter Wallnöfer2010-04-271-7/+21
|
* nbt: samlogon/netlogon structures - unify denominationsMatthias Dieter Wallnöfer2010-04-271-3/+3
|