Lines Matching refs:CTX2LP
54 #define CTX2LP(context) ((LDAP *)((context)->ldap_conn)) macro
232 LDAP *lp = CTX2LP(context); in check_ldap()
364 ret = ldap_search_s(CTX2LP(context), "", LDAP_SCOPE_BASE, in _kadm5_ad_connect()
370 if (ldap_count_entries(CTX2LP(context), m) > 0) { in _kadm5_ad_connect()
371 m0 = ldap_first_entry(CTX2LP(context), m); in _kadm5_ad_connect()
378 vals = ldap_get_values(CTX2LP(context), in _kadm5_ad_connect()
403 ldap_unbind(CTX2LP(context)); in _kadm5_ad_connect()
455 ret = ldap_search_s(CTX2LP(context), CTX2BASE(context), in ad_find_entry()
462 if (ldap_count_entries(CTX2LP(context), m) > 0) { in ad_find_entry()
464 m0 = ldap_first_entry(CTX2LP(context), m); in ad_find_entry()
465 vals = ldap_get_values(CTX2LP(context), m0, "distinguishedName"); in ad_find_entry()
771 ret = ldap_add_s(CTX2LP(context), dn, attrs); in kadm5_ad_create_principal()
824 ret = ldap_delete_s(CTX2LP(context), dn); in kadm5_ad_delete_principal()
848 LDAP *lp = CTX2LP(context); in kadm5_ad_destroy()
925 ret = ldap_search_s(CTX2LP(context), CTX2BASE(context), in kadm5_ad_get_principal()
932 if (ldap_count_entries(CTX2LP(context), m) > 0) { in kadm5_ad_get_principal()
934 m0 = ldap_first_entry(CTX2LP(context), m); in kadm5_ad_get_principal()
940 vals = ldap_get_values(CTX2LP(context), m0, "servicePrincipalName"); in kadm5_ad_get_principal()
943 vals = ldap_get_values(CTX2LP(context), m0, "userPrincipalName"); in kadm5_ad_get_principal()
946 vals = ldap_get_values(CTX2LP(context), m0, "userAccountControl"); in kadm5_ad_get_principal()
952 vals = ldap_get_values(CTX2LP(context), m0, "accountExpires"); in kadm5_ad_get_principal()
958 vals = ldap_get_values(CTX2LP(context), m0, "lastLogon"); in kadm5_ad_get_principal()
963 vals = ldap_get_values(CTX2LP(context), m0, "badPasswordTime"); in kadm5_ad_get_principal()
968 vals = ldap_get_values(CTX2LP(context), m0, "pwdLastSet"); in kadm5_ad_get_principal()
973 vals = ldap_get_values(CTX2LP(context), m0, "badPwdCount"); in kadm5_ad_get_principal()
978 vals = ldap_get_values(CTX2LP(context), m0, "userAccountControl"); in kadm5_ad_get_principal()
993 vals = ldap_get_values(CTX2LP(context), m0, in kadm5_ad_get_principal()
1113 ret = ldap_search_s(CTX2LP(context), CTX2BASE(context), in kadm5_ad_modify_principal()
1121 if (ldap_count_entries(CTX2LP(context), m) <= 0) { in kadm5_ad_modify_principal()
1126 m0 = ldap_first_entry(CTX2LP(context), m); in kadm5_ad_modify_principal()
1131 vals = ldap_get_values(CTX2LP(context), m0, "userAccountControl"); in kadm5_ad_modify_principal()
1167 vals = ldap_get_values(CTX2LP(context), m0, "msDS-KeyVersionNumber"); in kadm5_ad_modify_principal()
1182 vals = ldap_get_values(CTX2LP(context), m0, "accountExpires"); in kadm5_ad_modify_principal()
1198 vals = ldap_get_values(CTX2LP(context), m0, "distinguishedName"); in kadm5_ad_modify_principal()
1207 ret = ldap_modify_s(CTX2LP(context), dn, attrs); in kadm5_ad_modify_principal()