ldap_is_ldap_url() function determines whether or not a URL is an LDAP URL. An LDAP URL is a URL with the protocol set to ldap:// (or ldaps://, if the server is communicating over an SSL connection).
For more information, see "Determining If a URL is an LDAP URL" on page 248.
#include <ldap.h>
int ldap_is_ldap_url( char *url );
url |
#include <stdio.h>
#include <ldap.h>
...
char *my_url = "ldap://ldap.netscape.com/o=Airius.com";
...
if ( ldap_is_ldap_url( my_url ) != 0 ) {printf( "%s is an LDAP URL.\n", my_url );
} else {printf( "%s is not an LDAP URL.\n", my_url );
}
...
ldap_url_parse().
Last Updated: 10/01/98 17:06:23