123
edits
(Moving here from my user page) |
(Typos) |
||
| Line 10: | Line 10: | ||
... | ... | ||
if ( ldap_is_ldap_url( my_url ) != 0 ) { | if ( ldap_is_ldap_url( my_url ) != 0 ) { | ||
printf( "%s is an LDAP URL.\n", my_url ); | printf( "%s is an LDAP URL.\n", my_url ); | ||
} else { | } else { | ||
printf( "%s is not an LDAP URL.\n", my_url ); | printf( "%s is not an LDAP URL.\n", my_url ); | ||
} | } | ||
... | ... | ||
</pre> | </pre> | ||
ldap_is_ldap_url() determines whether a URL is an LDAP URL. To verify that an LDAP URL complies with the LDAP URL syntax, you should call the ldap_url_parse() function as detailed in Getting the Components of an LDAP URL With LDAP C SDK.<br> | ldap_is_ldap_url() determines whether a URL is an LDAP URL. To verify that an LDAP URL complies with the LDAP URL syntax, you should call the ldap_url_parse() function as detailed in Getting the Components of an LDAP URL With LDAP C SDK.<br> | ||
== Getting the Components of an LDAP URL With LDAP C SDK == | == Getting the Components of an LDAP URL With LDAP C SDK == | ||
edits