Kerberos programmatically - TechRepublic
General discussion
December 29, 2008 at 02:16 AM
dipika.srivastava16

Kerberos programmatically

by dipika.srivastava16 . Updated 17 years, 6 months ago

I am doing a kerberos authentication for authenticating a user to LDAP server. I am doing these things programmatically. While getting a service ticket, i am using the krb5API krb5_mk_req() which makes the service tkt from TGS and and also makes the AP_REQ.

The problem is that when i am calling krb5_mk_req(), i need to pass two parameters as service and hostname.
Service I am passing as “Ldap” and hostname i am passing the name of the computer where ldap server is installed like “hdchnveta20364.hclt.corp.hcl.in”.
This API is not working in this case but when i am passing the DNS server name for our LAN “chn-hclt-adc13.hclt.corp.hcl.in”, it is working fine.
Can anybody tell me the definite reason and the right parameter to pass.
I feel some configuration is required at client and server end.
I am working on Windows for which i am not getting right information.
Anybody can just help me by the links as well.

This discussion is locked

All Comments