Compiling and linking the wldap modules:
========================================

Step 1) Add following files to project:
	gk_wldap_interface.cxx
	gk_wldap_interface.h
	gk_wldap_link.cxx
	gk_wldap_link.h
	gk_wldap.cxx
	gk_wldap.h

Step 2) Add HAS_WLDAP to the preprocessor definitions.

Step 3) Statically link wldap32.lib and make the project.

Step 4) Configure the relevant sections of your gatekeeper.ini file:
	
	[Gatekeeper::Auth]
	LDAPPasswordAuth=optional;RRQ
	LDAPAliasAuth=sufficient;RRQ
	default=allow

	[GkLDAP::Settings]
	ServerName=ldap.yourorganisation.com
	ServerPort=389
	SearchBaseDN=ou=yourusers,o=yourorganisation,c=yourcontry
	BindUserDN=cn=LDAPAdmin,ou=yourusers,o=yourorganisation,c=yourcountry
	BindUserPW=reallysecretpassword
	timelimit=0
	sizelimit=0

	# Ldap alias authentication: 
	# Search for telephone number alias first
	LdapAliasAuthSearchPrecedenceE164=1

	# Ldap alias authentication: 
	# Check all ep supplied aliases are valid
	LdapAliasAuthCheckAliases=1

	# Ldap pw authentication: 
	# Search for telephone number alias first
	LdapPasswAuthSearchPrecedenceE164=1

	# Ldap pw authentication: 
	# Retrieve the 'h323status' attribute convert to
	# config string and check the condidtion, such as
	# allow, deny etc. Consult the gk manual under
	# Section [GkStatus::Auth] for more information
	LdapPasswAuthCheckAccountStatus=1

	# Ldap pw authentication: 
	# Check all ep supplied aliases are valid
	LdapPasswAuthCheckAliases=1

	[GkLDAP::LDAPAttributeNames]
	CommonName=cn
	AccountStatus=h323accountStatus
	H323ID=H323id
	TelephonNo=H323telephonNo
	H235PassWord=H323plainTextPw

Step 6) Configure your LDAP server and add following attributes to your schema:
 	Ldap Display Name:   LDAP Attribute Name:   OIDs:
	----------------------------------------------------------------------
	H323-accountStatus   h323accountStatus      1.3.6.1.4.1.16617.2.5.1000
	H323-id              H323id                 1.3.6.1.4.1.16617.2.5.1001
	H323-telephoneNo     H323telephonNo         1.3.6.1.4.1.16617.2.5.1002
	H323-plainTextPw     H323plainTextPw        1.3.6.1.4.1.16617.2.5.1003
	

Note:   If you currently do not run your own LDAP server, and would like to test
	your compiled gatekeeper, look at wldap_ini.txt  in this folder for more 
	information
	
# EOF Franz J Ehrengruber