Function

gss_aapl_change_password(_:_:_:_:)

Changes the password associated with a name.

Declaration

func gss_aapl_change_password(_ name: gss_name_t, _ mech: gss_const_OID, _ attributes: CFDictionary, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> OM_uint32

Parameters

name

The GSS name for which you want to change the password.

mech

The underlying mechanism in use. For example, use GSS_KRB5_MECHANISM for Kerberos.

attributes

A dictionary that you use to specify the old and new passwords as string values. Use the keys kGSSChangePasswordOldPassword and kGSSChangePasswordNewPassword for the old and new passwords, respectively.

error

A CFErrorRef pointer that the function sets to point at a new error object if the function call fails. Pass NULL to ignore this error. When an error does exist, it describes the reason for the failure, and you are responsible for releasing it with CFRelease.

Return Value

A major status code set to GSS_S_COMPLETE if the call succeeds, or some other value indicating the reason for failure if not.