principal name containing domain

Bin Lu blu at paloaltonetworks.com
Sat Oct 11 19:54:53 EDT 2014


If I pass in "domain\\username", the converted principal name is "domainusername"; but if I pass in "domain\\\\username", the converted name becomes "domain\\username" (double backslash).

-binlu

-----Original Message-----
From: krbdev-bounces at mit.edu [mailto:krbdev-bounces at mit.edu] On Behalf Of Bin Lu
Sent: Saturday, October 11, 2014 4:23 PM
To: krbdev at mit.edu
Subject: principal name containing domain

<html>
Hi,

I created a principal with user name containing the domain name (in format of <domainname>\<username>) using krb5_parse_name(). But when I converted it back using krb5_unparse_name(), the backslash ("\") is disappeared and the name became <domainname><username>.

What is the right way to pass the username with domain name in the principal?

Thanks,
-binlu
_______________________________________________
krbdev mailing list             krbdev at mit.edu
https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.mit.edu_mailman_listinfo_krbdev&d=AAICAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=OoT5VLtV-av2TWtGCL3lvAfjqGLD0FLH3lQvyqxLjdc&m=D-rZsByP7NVd16naSqKGL4D2B9gQISUUiXJpgbHOMik&s=DZH50tlxgAw8P7vmOKgK49f8ThRv3mVHi4pMJQxul-k&e= 



More information about the krbdev mailing list