29c0fdd Add new call find_or_guess_upn()

Authored and Committed by sbose 11 years ago
    Add new call find_or_guess_upn()
    
    With the current approach the upn was either a pointer to a const string
    in a ldb_message or a string created with the help of talloc. This new
    function always makes it a talloc'ed value.
    
    Additionally krb5_get_simple_upn() is enhanced to handle sub-domains as
    well.