requests-kerberos icon indicating copy to clipboard operation
requests-kerberos copied to clipboard

Implement DNS hostname canonicalization

Open steelman opened this issue 2 years ago • 1 comments

Optionally resolve hostname via CNAME recrord to its canonical form (A or AAAA record). Optionally use reverse DNS query.

Such code is necessary on Windows platforms where SSPI (unlike MIT Kerberos[1]) does not implement such operation and it is applications' responsibility[2] to take care of CNAME resolution. However, the code seems universal enough to put it into the library rather than in every single program using requests_kerberos.

[1] https://github.com/krb5/krb5/blob/ec71ac1cabbb3926f8ffaf71e1ad007e4e56e0e5/src/lib/krb5/os/sn2princ.c#L99 [2] https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-server-2010/gg502606(v=office.14)?redirectedfrom=MSDN#kerberos-authentication-and-dns-cnames

steelman avatar Dec 14 '23 14:12 steelman

Ping?

steelman avatar Apr 03 '24 06:04 steelman