1#include <OpenDirectory/OpenDirectory.h> 2 3#ifndef _COMMON_H_ 4#define _COMMON_H_ 5 6int od_record_create(pam_handle_t*, ODRecordRef*, CFStringRef); 7int od_record_create_cstring(pam_handle_t*, ODRecordRef*, const char*); 8 9int od_record_check_pwpolicy(ODRecordRef); 10int od_record_check_authauthority(ODRecordRef); 11int od_record_check_homedir(ODRecordRef); 12int od_record_check_shell(ODRecordRef); 13 14int od_extract_home(pam_handle_t*, const char *, char **, char **, char **); 15int od_principal_for_user(pam_handle_t*, const char *, char **); 16 17void pam_cf_cleanup(__unused pam_handle_t *, void *, __unused int ); 18 19int cfstring_to_cstring(const CFStringRef val, char **buffer); 20 21#endif /* _COMMON_H_ */ 22