realm¶
- ciecplib.kerberos.realm(principal)¶
Return the kerberos realm name from a principal.
- Parameters:
principal (
str) – the kerberos principal to parse- Returns:
realm (
str) – the realm name- Raises:
IndexError – If the input principal cannot be parsed properly (normally if it doesn’t contain an
@character).
Examples
>>> realm('marie.curie@EXAMPLE.ORG') 'EXAMPLE.ORG'