Bug 3437 - incompatible prototype for krb5_locate_kdc
Summary: incompatible prototype for krb5_locate_kdc
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.21a
Hardware: All Other
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 12:48 UTC by Peter Eisentraut
Modified: 2017-07-16 22:56 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eisentraut 2006-01-23 12:48:03 UTC
Samba uses the following prototype for krb5_locate_kdc (source/include/includes.h):

krb5_error_code
krb5_locate_kdc(krb5_context ctx, const krb5_data *realm,
                struct sockaddr **addr_pp,
                int *naddrs, int get_masters);

The actual prototype used by the Kerberos library (http://web.mit.edu/kerberos/, krb5 1.4.3) is:

krb5_error_code
krb5_locate_kdc(krb5_context context, const krb5_data *realm,
                struct addrlist *addrlist,
                int get_masters, int socktype, int family)

So this code cannot work.
Comment 1 Debian samba package maintainers (PUBLIC MAILING LIST) 2008-12-29 05:47:45 UTC
The 3.2 source code now shows:
krb5_error_code smb_krb5_locate_kdc(krb5_context ctx, const krb5_data *realm, struct sockaddr **addr_pp, int *naddrs, int get_masters);

I very much suspect this bug report can be closed but being technically indigent here, I can take that responsibility.

Christian Perrier (in name of Samba package maintainers in Debian)
Comment 2 Andrew Bartlett 2017-07-16 22:56:23 UTC
(In reply to Debian samba package maintainers (PUBLIC MAILING LIST) from comment #1)
Closing on this basis.  Our krb5 support has moved on a very long way since this bug was filed.