- Timestamp:
- 04/08/09 12:10:55 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/cups.py
r3496 r3497 80 80 # handle Kerberized usernames as described here : 81 81 # http://www.mit.edu/~kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-user/What-is-a-Kerberos-Principal_003f.html 82 self.OriginatingUserName = self.OriginatingUserName.split("@", 1)[0].split("/")[0] 82 # 83 # Only does this if there's a "@" in the username, otherwise we could break non-kerberized 84 # usernames containing a "/", like Samba/Windows usernames in some cases. 85 if self.OriginatingUserName.find("@") != -1 : 86 self.OriginatingUserName = self.OriginatingUserName.split("@", 1)[0].split("/")[0] 83 87 84 88 for attrib in ("OriginatingUserName",