* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <config.h>
-
-//#include "wine/port.h"
-#include <wine/debug.h>
-
-//#include <stdarg.h>
-
-//#include "windef.h"
-//#include "winbase.h"
-//#include "winnls.h"
-
-#ifdef HAVE_LDAP_H
-#include <ldap.h>
-#endif
-
#include "winldap_private.h"
-//#include "wldap32.h"
#ifdef HAVE_LDAP
/* Should eventually be determined by the algorithm documented on MSDN. */
}
/* Determine if a URL starts with a known LDAP scheme */
-static int has_ldap_scheme( char *url )
+static BOOL has_ldap_scheme( char *url )
{
- if (!strncasecmp( url, "ldap://", 7 ) ||
- !strncasecmp( url, "ldaps://", 8 ) ||
- !strncasecmp( url, "ldapi://", 8 ) ||
- !strncasecmp( url, "cldap://", 8 )) return 1;
- return 0;
+ return !strncasecmp( url, "ldap://", 7 ) ||
+ !strncasecmp( url, "ldaps://", 8 ) ||
+ !strncasecmp( url, "ldapi://", 8 ) ||
+ !strncasecmp( url, "cldap://", 8 );
}
/* Flatten an array of hostnames into a space separated string of URLs.
- * Prepend a given scheme and append a given portnumber to each hostname
+ * Prepend a given scheme and append a given port number to each hostname
* if necessary.
*/
static char *join_hostnames( const char *scheme, char **hostnames, ULONG portnumber )
}
#endif
-WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
-
/***********************************************************************
* cldap_openA (WLDAP32.@)
*
*
* PARAMS
* hostname [I] Name of the host to connect to.
- * portnumber [I] Portnumber to use.
+ * portnumber [I] Port number to use.
*
* RETURNS
* Success: Pointer to an LDAP context.
* The hostname string can be a space separated string of hostnames,
* in which case the LDAP runtime will try to connect to the hosts
* in order, until a connection can be made. A hostname may have a
- * trailing portnumber (separated from the hostname by a ':'), which
- * will take precedence over the portnumber supplied as a parameter
+ * trailing port number (separated from the hostname by a ':'), which
+ * will take precedence over the port number supplied as a parameter
* to this function.
*/
WLDAP32_LDAP * CDECL cldap_openW( PWCHAR hostname, ULONG portnumber )
*
* PARAMS
* hostname [I] Name of the host to connect to.
- * portnumber [I] Portnumber to use.
+ * portnumber [I] Port number to use.
*
* RETURNS
* Success: Pointer to an LDAP context.
* The hostname string can be a space separated string of hostnames,
* in which case the LDAP runtime will try to connect to the hosts
* in order, until a connection can be made. A hostname may have a
- * trailing portnumber (separated from the hostname by a ':'), which
- * will take precedence over the portnumber supplied as a parameter
+ * trailing port number (separated from the hostname by a ':'), which
+ * will take precedence over the port number supplied as a parameter
* to this function. The connection will not be made until the first
* LDAP function that needs it is called.
*/
*
* PARAMS
* hostname [I] Name of the host to connect to.
- * portnumber [I] Portnumber to use.
+ * portnumber [I] Port number to use.
*
* RETURNS
* Success: Pointer to an LDAP context.
* The hostname string can be a space separated string of hostnames,
* in which case the LDAP runtime will try to connect to the hosts
* in order, until a connection can be made. A hostname may have a
- * trailing portnumber (separated from the hostname by a ':'), which
- * will take precedence over the portnumber supplied as a parameter
+ * trailing port number (separated from the hostname by a ':'), which
+ * will take precedence over the port number supplied as a parameter
* to this function.
*/
WLDAP32_LDAP * CDECL ldap_openW( PWCHAR hostname, ULONG portnumber )
*
* PARAMS
* hostname [I] Name of the host to connect to.
- * portnumber [I] Portnumber to use.
+ * portnumber [I] Port number to use.
* secure [I] Ask the server to create an SSL connection.
*
* RETURNS
* The hostname string can be a space separated string of hostnames,
* in which case the LDAP runtime will try to connect to the hosts
* in order, until a connection can be made. A hostname may have a
- * trailing portnumber (separated from the hostname by a ':'), which
- * will take precedence over the portnumber supplied as a parameter
+ * trailing port number (separated from the hostname by a ':'), which
+ * will take precedence over the port number supplied as a parameter
* to this function. The connection will not be made until the first
* LDAP function that needs it is called.
*/