summaryrefslogtreecommitdiffstats
path: root/source/libads/kerberos.c
Commit message (Collapse)AuthorAgeFilesLines
* kerberos: fix indent of enc type lines in generated krb5.conf files.Günther Deschner2008-09-041-3/+3
| | | | Guenther
* libads: add ADS_AUTH_USER_CREDS to avoid magic overwriting of usernames.Günther Deschner2008-06-241-0/+6
| | | | Guenther
* Memory leak fixes from Chere Zhou <czhou@isilon.com>.Jeremy Allison2008-05-271-0/+4
| | | | Jeremy.
* Fix some comments to match get_kdc_ip_string()'s behaviourroot2008-05-191-1/+7
|
* Coverity fixesMarc VanHeyningen2008-03-171-2/+4
|
* Fix Coverity ID 551Volker Lendecke2008-03-081-0/+2
| | | | | | Correctly return if we can't create the temporary krb5.conf Jeremy, please check!
* Fix some warningsVolker Lendecke2008-02-251-7/+15
| | | | warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
* Restrict the enctypes in the generated krb5.conf files to Win2003 types.Gerald W. Carter2008-01-281-4/+8
| | | | | | This fixes the failure observed on FC8 when joining a Windows 2008 RC1 domain. We currently do not handle user session keys correctly when the KDC uses AES in the ticket replies.
* Tidy up code and debug for non-default krb5 IPv6 port.Jeremy Allison2008-01-161-9/+15
| | | | Jeremy.
* Fix IPv6 bug #5204, which caused krb5 DNS lookupsJeremy Allison2008-01-161-13/+56
| | | | | for a name '[<ipv6 addr>'. Jeremy.
* Print principal in debug statement in kerberos_kinit_password() as well.Günther Deschner2008-01-141-1/+2
| | | | Guenther
* While 'data' is usually 0 terminated, nothing in the spec requires that. The ↵Simo Sorce2007-12-171-1/+4
| | | | | | correct way is to copy only 'length' bytes. Simo.
* Doh, fix typo in error exit.Jeremy Allison2007-12-151-2/+2
| | | | Jeremy.
* Added patch originally by Andreas Schneider <anschneider@suse.de>Jeremy Allison2007-12-151-0/+52
| | | | | | to cause us to behave like Vista when looking for remote machine principal. Modified by me. Jeremy.
* More pstring removal....Jeremy Allison2007-11-201-9/+9
| | | | Jeremy.
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-13/+25
| | | | | | | | | | | | | to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-12/+12
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r25030: ip_srv_nonsite and count_nonsite are initialized in get_kdc_list() ↵Lars Müller2007-10-101-2/+2
| | | | | | in any case.
* r24836: Initialize some uninitialized variables.Michael Adam2007-10-101-3/+5
| | | | | | | This prevents a segfault when get_kdc_ip_string() is called with sitename == NULL. Michael
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23147: Patch #4566 from jacob berkman <jberkman@novell.com>. Pass password ↵Jeremy Allison2007-10-101-1/+2
| | | | | | data to krb5_prompter. Jeremy.
* r22666: Expand kerberos_kinit_password_ext() to return NTSTATUS codes and makeGünther Deschner2007-10-101-3/+29
| | | | | | winbindd's kerberized pam_auth use that. Guenther
* r22664: When we have krb5_get_init_creds_opt_get_error() then try to get the ↵Günther Deschner2007-10-101-0/+121
| | | | | | | | NTSTATUS codes directly out of the krb5_error edata. Guenther
* r22663: Restructure kerberos_kinit_password_ext() error path.Günther Deschner2007-10-101-53/+33
| | | | Guenther
* r21779: I missd a call to krb5_get_init_creds_opt_alloc in r21778.James Peach2007-10-101-1/+1
|
* r21778: Wrap calls to krb5_get_init_creds_opt_free to handle the differentJames Peach2007-10-101-2/+2
| | | | | calling convention in the latest MIT changes. Apparantly Heimdal is also changing to this calling convention.
* r21240: Fix longstanding Bug #4009.Günther Deschner2007-10-101-1/+5
| | | | | | | | | | | | | | | | | For the winbind cached ADS LDAP connection handling (ads_cached_connection()) we were (incorrectly) assuming that the service ticket lifetime equaled the tgt lifetime. For setups where the service ticket just lives 10 minutes, we were leaving hundreds of LDAP connections in CLOSE_WAIT state, until we fail to service entirely with "Too many open files". Also sequence_number() in winbindd_ads.c needs to delete the cached LDAP connection after the ads_do_search_retry() has failed to submit the search request (although the bind succeeded (returning an expired service ticket that we cannot delete from the memory cred cache - this will get fixed later)). Guenther
* r21238: Fix tab indent in self-written krb5.confs.Günther Deschner2007-10-101-1/+1
| | | | Guenther
* r21110: Fix kinit with Heimdal (Bug #4226).Günther Deschner2007-10-101-13/+26
| | | | Guenther
* r20860: Adding some small tweaks. When we have no sitename, there is no need toGünther Deschner2007-10-101-11/+14
| | | | | | ask for the list of DCs twice. Guenther
* r20857: Silence gives assent :-). Checking in the fix forJeremy Allison2007-10-101-14/+51
| | | | | | | | | site support in a network where many DC's are down. I heard via Volker there is still a bug w.r.t the wrong site being chosen with trusted domains but we'll have to layer that fix on top of this. Gd - complain if this doesn't work for you. Jeremy.
* r18512: Add krb5conf file environment to debug statement.Günther Deschner2007-10-101-2/+3
| | | | Guenther
* r18241: If replacing the krb5.conf, ensure it's readable.Jeremy Allison2007-10-101-0/+10
| | | | Jeremy.
* r18226: Ensure we only do this evil thing if it's our realm.Jeremy Allison2007-10-101-2/+1
| | | | Jeremy.
* r18225: If we're going to overwrite krb5.conf, at leastJeremy Allison2007-10-101-20/+42
| | | | | be polite enough to make a backup. Jeremy.
* r18201: Make explicit what's going on here.Jeremy Allison2007-10-101-1/+2
| | | | Jeremy.
* r18200: Experimental code to allow system /etc/krb5.conf to beJeremy Allison2007-10-101-42/+63
| | | | | overwritten by winbindd. Don't enable this :-). Jeremy.
* r18010: Ensure we don't timeout twice to the sameJeremy Allison2007-10-101-0/+3
| | | | | | | server in winbindd when it's down and listed in the -ve connection cache. Fix memory leak, reduce timeout for cldap calls - minimum 3 secs. Jeremy.
* r18006: Actually a smaller change than it looks. LeverageJeremy Allison2007-10-101-2/+49
| | | | | | | | | the get_dc_list code to get the _kerberos. names for site support. This way we don't depend on one KDC to do ticket refresh. Even though we know it's up when we add it, it may go down when we're trying to refresh. Jeremy.
* r18004: If you're writing out a krb5.conf, at leastJeremy Allison2007-10-101-2/+2
| | | | | get the syntax right... :-). Jeremy.
* r18003: Creating a directory and getting EEXIST isn't an error.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r18002: Improved debug.Jeremy Allison2007-10-101-1/+2
| | | | Jeremy.
* r18001: Proper error reporting on write/close fail.Jeremy Allison2007-10-101-1/+7
| | | | Jeremy.
* r18000: Get nelem/size args right for x_fwrite.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r17999: No need to prevent others from reading. Use 755 insteadJeremy Allison2007-10-101-2/+2
| | | | | | of 700, and 644 instead of 600. Reading might help debugging. Jeremy.
* r17997: Ensure lockdir exists for winbindd. Store tmpJeremy Allison2007-10-101-1/+1
| | | | | krb5.conf files under lockdir, not privatedir. Jeremy.
* r17996: Don't talloc free the memory then reference it. Doh !Jeremy Allison2007-10-101-3/+4
| | | | Jeremy.
* r17995: Ensure we create the domain-specific krb5 files in aJeremy Allison2007-10-101-8/+22
| | | | | separate directory. Jeremy.
* r17994: Add debugs that showed me why my site code wasn'tJeremy Allison2007-10-101-0/+3
| | | | | | working right. Don't update the server site when we have a client one... Jeremy.