ipaserver.plugins.trust.generate_creds

ipaserver.plugins.trust.generate_creds(trustinstance, style, **options)[source]

Generate string representing credentials using trust instance Input:

trustinstance – ipaserver.dcerpc.TrustInstance object style – style of credentials

CRED_STYLE_SAMBA – for using with Samba bindings CRED_STYLE_KERBEROS – for obtaining Kerberos ticket

**options – options with realm_admin and realm_passwd keys

Result:

a string representing credentials with first % separating username and password None is returned if realm_passwd key returns nothing from options