summaryrefslogtreecommitdiffstats
path: root/source/include/ads.h
Commit message (Collapse)AuthorAgeFilesLines
* A hack to get us building on a slightly older heimdal kerberos. It appearsAndrew Bartlett2003-03-151-0/+7
| | | | | | | that we don't need this flag - heimdal's internal password change routines don't set it. Andrew Bartlett
* Patch from Luke Howard to add mutual kerberos authentication, and SMB sessionAndrew Bartlett2003-02-241-0/+5
| | | | | | keys for kerberos authentication. Andrew Bartlett
* Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enableAndrew Bartlett2003-02-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | users w/o full administrative access on computer accounts to join a computer into AD domain. The patch and detailed changelog is available at: http://www.itcollege.ee/~aandreim/samba This is a list of changes in general: 1. When creating machine account do not fail if SD cannot be changed. setting SD is not mandatory and join will work perfectly without it. 2. Implement KPASSWD CHANGEPW protocol for changing trust password so machine account does not need to have reset password right for itself. 3. Command line utilities no longer interfere with user's existing kerberos ticket cache. 4. Command line utilities can do kerberos authentication even if username is specified (-U). Initial TGT will be requested in this case. I've modified the patch to share the kinit code, rather than copying it, and updated it to current CVS. The other change included in the original patch (local realms) has been left out for now. Andrew Bartlett
* Revert ADS_ERR_OK change. Some compilers didn't like it.Jim McDonough2002-11-181-1/+1
| | | | | | The problem is that ADS_ERR_OK() run on a function that returns an ADS_STATUS causes the function to be run mulitple times...so you have to return a status, then check it with the macro.
* Next step of printer publishing.Jim McDonough2002-11-181-56/+1
| | | | | | | | net ads printer publish <printername> [servername] Will retreive the DsSpooler and DsDriver info by rpc for a remote server then publish it. Next comes doing it within smbd
* Add the beginings of sam_ads to the tree.Andrew Bartlett2002-09-281-2/+5
| | | | | | | | | | | | | | | | This module, primarilly the work of "Stefan (metze) Metzmacher" <metze@metzemix.de>, uses the Active Directory schema to store the user/group/other information. I've been testing it against a real AD server, and it is intended to work with OpenLDAP as well. I've moved a few functions around in our other libads code, which has made it easier to tap into that existing code. Also, I've made some changes to the SAM interface, I hope there are not too many objections... To ensure we don't get silly bugs in the skel module, it is now in the default compile. This way you should not forget to update it :-) Andrew Bartlett
* Another patch from metze, towards his work on sam_ads.Andrew Bartlett2002-09-251-6/+7
| | | | See mx-ldap.sf.net for his current progress.
* Add clock skew handling to our kerberos code. This allows us to cope withAndrew Tridgell2002-09-171-1/+8
| | | | the DC being out of sync with the local machine.
* Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de>Andrew Bartlett2002-09-061-21/+103
| | | | | | | | | | | | | to extend the ADS_STATUS system to include NTSTATUS, and to provide a better general infrustructure for his sam_ads work. I've also added some extra failure mode DEBUG()s to parts of the code. NOTE: The ADS_ERR_OK() macro is rather sensitive to braketing issues - without the final set of brakets, the test is essentially inverted - causing some intersting 'error = success' messages... Andrew Bartlett
* Add AD version of samlogon replies for getdc. ATM it will only functionJim McDonough2002-08-061-0/+22
| | | | if you have an ADS DC.
* This fixes a number of ADS problems, particularly with netbioslessAndrew Tridgell2002-08-051-13/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setups. - split up the ads structure into logical pieces. This makes it much easier to keep things like the authentication realm and the server realm separate (they can be different). - allow ads callers to specify that no sasl bind should be performed (used by "net ads info" for example) - fix an error with handing ADS_ERROR_SYSTEM() when errno is 0 - completely rewrote the code for finding the LDAP server. Now try DNS methods first, and try all DNS servers returned from the SRV DNS query, sorted by closeness to our interfaces (using the same sort code as we use in replies from WINS servers). This allows us to cope with ADS DCs that are down, and ensures we don't pick one that is on the other side of the country unless absolutely necessary. - recognise dnsRecords as binary when displaying them - cope with the realm not being configured in smb.conf (work it out from the LDAP server) - look at the trustDirection when looking up trusted domains and don't include trusts that trust our domains but we don't trust theirs. - use LDAP to query the alternate (netbios) name for a realm, and make sure that both and long and short forms of the name are accepted by winbindd. Use the short form by default for listing users/groups. - rescan the list of trusted domains every 5 minutes in case new trust relationships are added while winbindd is running - include transient trust relationships (ie. C trusts B, B trusts A, so C trusts A) in winbindd. - don't do a gratuituous node status lookup when finding an ADS DC (we don't need it and it could fail) - remove unused sid_to_distinguished_name function - make sure we find the allternate name of our primary domain when operating with a netbiosless ADS DC (using LDAP to do the lookup) - fixed the rpc trusted domain enumeration to support up to approx 2000 trusted domains (the old limit was 3) - use the IP for the remote_machine (%m) macro when the client doesn't supply us with a name via a netbios session request (eg. port 445) - if the client uses SPNEGO then use the machine name from the SPNEGO auth packet for remote_machine (%m) macro - add new 'net ads workgroup' command to find the netbios workgroup name for a realm
* net ads info now reports the IP of the LDAP server as well as its name - ↵Andrew Tridgell2002-07-301-0/+1
| | | | very useful in scripts
* fixed the fallback to a BDC for ADS connectionsAndrew Tridgell2002-04-181-0/+1
|
* Add ads ldap server controlsJim McDonough2002-04-101-0/+5
|
* Add ability to extend ads modification list on the fly. Added ADS_MODLIST type.Jim McDonough2002-02-111-0/+6
|
* Change ADS_ERROR family of macros - removed semicolon from the end, since ↵Jim McDonough2002-02-021-4/+4
| | | | they were only being used correctly in one location, and all other assumed the semicolon wasn't there. Amazing that none of them mattered syntactically, until today.
* Add ads printer informationJim McDonough2002-02-011-0/+55
|
* much better ADS error handling systemAndrew Tridgell2001-12-191-6/+16
|
* - added initial support for trusted domains in winbindd_adsAndrew Tridgell2001-12-191-0/+11
| | | | | | - gss error code patch from a.bokovoy@sam-solutions.net - better sid dumping in ads_dump - fixed help in wbinfo
* added internal sasl/gssapi code. This means we are no longer dependent on ↵Andrew Tridgell2001-12-081-0/+2
| | | | cyrus-sasl which makes the code much less fragile. Also added code to auto-determine the server name or realm
* added a REALLY gross hack into kerberos_kinit_password so thatAndrew Tridgell2001-12-051-0/+1
| | | | | | winbindd can do a kinit this will be removed once we have code that gets a tgt and puts it in a place where cyrus-sasl can see it
* added timeouts and retries to ldap operationsAndrew Tridgell2001-12-051-0/+7
|
* added another ATYPE_Andrew Tridgell2001-12-031-1/+2
|
* added a basic ADS backend to winbind. More work needed, but atAndrew Tridgell2001-12-031-0/+3
| | | | least basic operations work
* forgot this fileAndrew Tridgell2001-11-201-0/+29