41 #define WS_SAFS_LDAP_DEFAULT_TIMEOUT 30 |
41 #define WS_SAFS_LDAP_DEFAULT_TIMEOUT 30 |
42 #define WS_SAFS_LDAP_DEFAULT_SIZELIMIT 1000 |
42 #define WS_SAFS_LDAP_DEFAULT_SIZELIMIT 1000 |
43 |
43 |
44 #define WS_SAFS_LDAP_MAX_TIMEOUT 32767 |
44 #define WS_SAFS_LDAP_MAX_TIMEOUT 32767 |
45 |
45 |
46 #define WS_SAFS_LDAP_EMPTY_QUERY_ERROR 404 |
46 #define WS_SAFS_LDAP_EMPTY_FILTER_ERROR 404 |
47 #define WS_SAFS_LDAP_EMPTY_RESULT_ERROR 404 |
47 #define WS_SAFS_LDAP_EMPTY_RESULT_ERROR 404 |
48 |
48 |
49 /* |
49 /* |
50 * ldap-query |
50 * ldap-search |
51 * |
51 * |
52 * Sends an ldap query result as ldif to the client. If no query parameter is |
52 * Sends an ldap search result as ldif to the client. If no filter parameter is |
53 * specified, the SAFs tries to use the "ldap_query" parameter from rq->vars. |
53 * specified, the SAFs tries to use the "ldap_filter" parameter from rq->vars. |
54 * |
54 * |
55 * required parameters: |
55 * required parameters: |
56 * resource name of the ldap resource pool |
56 * resource name of the ldap resource pool |
57 * basedn ldap basedn |
57 * basedn ldap basedn |
58 * |
58 * |
59 * optional parameters: |
59 * optional parameters: |
60 * binddn bind ldap session to binddn |
60 * binddn bind ldap session to binddn |
61 * bindpw binddn password |
61 * bindpw binddn password |
62 * query ldap search query |
62 * filter ldap search filter |
63 * scope search scope: base, onelevel, subtree, children |
63 * scope search scope: base, onelevel, subtree, children |
64 * timeout timeout in seconds default: 30 |
64 * timeout timeout in seconds default: 30 |
65 * sizelimit maximum number of result entries defazkt: 1000 |
65 * sizelimit maximum number of result entries defazkt: 1000 |
66 * empty_query_error status code if the query is empty/null default: 404 |
66 * empty_filter_error status code if the filter is empty/null default: 404 |
67 * empty_result_error status code if the result is empty default: 404 |
67 * empty_result_error status code if the result is empty default: 404 |
68 * |
68 * |
69 * If the query or result is empty and the status code is 2xx, an empty |
69 * If the query or result is empty and the status code is 2xx, an empty |
70 * response is sent to the client. |
70 * response is sent to the client. |
71 */ |
71 */ |
72 int ldap_query_saf(pblock *pb, Session *sn, Request *rq); |
72 int service_ldap_search(pblock *pb, Session *sn, Request *rq); |
73 |
73 |
74 |
74 |
75 #ifdef __cplusplus |
75 #ifdef __cplusplus |
76 } |
76 } |
77 #endif |
77 #endif |