#
# Config file for ldapper v1.2
#
#

#
set LDAP(lang) english

#
# Text for labels,buttons
#
if {$LDAP(lang)=="english"} {
    set LDAP(label) {Search Help Quit Server {Max Results} Country \
			  Organisation lock browse.. filter}
}



# Server 0 is the default server
# LDAP(x,name) is what appears in the menu
# LDAP(x,host) where to connect to
# LDAP(x,base) Base for search use * for general searches
set LDAP(0,name) "Aston X.500 Directory"
set LDAP(0,host) {ldap.aston.ac.uk 389}
set LDAP(0,base) "o=Aston University,c=GB"
set LDAP(1,name) "InfoSpace Directory"
set LDAP(1,host) {ldap.infospace.com 389}
set LDAP(1,base) {o=*,c=US}
set LDAP(2,name) "Switchboard Directory"
set LDAP(2,host) {ldap.switchboard.com 389}
set LDAP(2,base) {o=*,c=US}
set LDAP(3,name) "Four11 Directory"
set LDAP(3,host) {ldap.four11.com 389}
set LDAP(3,base) {o=*,c=*}
set LDAP(4,name) "Bigfoot Directory"
set LDAP(4,host) {ldap.bigfoot.com 389}
set LDAP(4,base) {o=*,c=*}
set LDAP(5,name) {Nameflow-Paradise X.500}
set LDAP(5,host) {nameflow.dante.net 389}
set LDAP(5,base) {o=*,c=GB}

#
# Maximum number of matches to return 
# 0 == all you've got
#
set LDAP(MaxResults) {25 50 100 200 0}

#
# if ldap(dn) is non-zero then the Distinguished Name is
# returned as the first attribute. The dn is the full X.500
# style address of the person or whatever.
# Lowercase is not a mistake - this is a Ldap.so variable not a Ldapper one.
set ldap(dn) 1

# Initial state of lock button.
# when zero switching servers changes the search base to that server's
# default. If non-zero it will stay as it is allowing the same search of
# different servers.
set LDAP(searchlock) 0

# What to return {} == return all attributes
set LDAP(attributes) {cn sn o ou mail rfc822mailbox telephoneNumber \
			  facsimileTelephoneNumber postalAddress title \
			  personalTitle roomNumber description jpegPhoto \
			  labeledURL url}

# Close the connection after each search ? 
set LDAP(unbindaftersearch) 1

# only support for exmh at the moment
set LDAP(mailer) exmh


# Searches are for attr=term or attr~=term
# define the attributes you want to be able to search for here
# and the accompaning friendly text
set LDAP(attr,value) {cn sn mail}
set LDAP(attr,friendly) {{full name} {family name} {mail address}}

#
# these correspond to =term =*term* =*term =term* ~=term
# respectively.
set LDAP(stype,friendly) {{exactly matches} contains {starts with} \
	{ends with} approximates}




#
# Create a button in the results widget if attribute contains TEXT
# (match is case insensitive).
# set LDAP(button,TEXT) {ProcedureToInvoke foregroundcolour backgroundcolour}
# ldapper will look in ~/.tk/ldapper and <prefix>/lib/ldapper for the proc
# (in that order).
set LDAP(button,mail) [list MailTo_$LDAP(mailer) blue white]
set LDAP(button,url) {InvokeNetscape white black}
