xref: /onnv-gate/usr/src/lib/libldap4/include/ldapconfig.h (revision 3857:21b9b714e4ab)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  *
3*3857Sstevel  * Portions Copyright 1998 Sun Microsystems, Inc.  All rights reserved.
4*3857Sstevel  * Use is subject to license terms.
50Sstevel@tonic-gate  *
60Sstevel@tonic-gate  * File chamged to fit with Sun Standards
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  */
90Sstevel@tonic-gate 
100Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
110Sstevel@tonic-gate 
120Sstevel@tonic-gate /*
130Sstevel@tonic-gate  * Copyright (c) 1994 Regents of the University of Michigan.
140Sstevel@tonic-gate  * All rights reserved.
150Sstevel@tonic-gate  *
160Sstevel@tonic-gate  * Redistribution and use in source and binary forms are permitted
170Sstevel@tonic-gate  * provided that this notice is preserved and that due credit is given
180Sstevel@tonic-gate  * to the University of Michigan at Ann Arbor. The name of the University
190Sstevel@tonic-gate  * may not be used to endorse or promote products derived from this
200Sstevel@tonic-gate  * software without specific prior written permission. This software
210Sstevel@tonic-gate  * is provided ``as is'' without express or implied warranty.
220Sstevel@tonic-gate  */
230Sstevel@tonic-gate 
240Sstevel@tonic-gate #ifndef _CONFIG_H
250Sstevel@tonic-gate #define _CONFIG_H
260Sstevel@tonic-gate 
270Sstevel@tonic-gate /*
280Sstevel@tonic-gate  * config.h for LDAP -- edit this file to customize LDAP client behavior.
290Sstevel@tonic-gate  * NO platform-specific definitions should be placed in this file.
300Sstevel@tonic-gate  * Note that this is NOT used by the LDAP or LBER libraries.
310Sstevel@tonic-gate  */
320Sstevel@tonic-gate 
330Sstevel@tonic-gate /*
340Sstevel@tonic-gate  * SHARED DEFINITIONS - things you should change
350Sstevel@tonic-gate  */
360Sstevel@tonic-gate 	/* default ldap host */
370Sstevel@tonic-gate #define LDAPHOST	"localhost"
380Sstevel@tonic-gate 	/* default place to start searching */
390Sstevel@tonic-gate #define DEFAULT_BASE	"c=US"
400Sstevel@tonic-gate 
410Sstevel@tonic-gate /*********************************************************************
420Sstevel@tonic-gate  *                                                                   *
430Sstevel@tonic-gate  * You probably do not need to edit anything below this point        *
440Sstevel@tonic-gate  *                                                                   *
450Sstevel@tonic-gate  *********************************************************************/
460Sstevel@tonic-gate 
470Sstevel@tonic-gate /*
480Sstevel@tonic-gate  * SHARED DEFINITIONS - other things you can change
490Sstevel@tonic-gate  */
500Sstevel@tonic-gate 	/* default attribute to use when sorting entries, NULL => sort by DN */
510Sstevel@tonic-gate #define SORT_ATTR	NULL
520Sstevel@tonic-gate 	/* default count of DN components to show in entry displays */
530Sstevel@tonic-gate #define DEFAULT_RDNCOUNT	2
540Sstevel@tonic-gate 	/* default config file locations */
550Sstevel@tonic-gate #define FILTERFILE	"/etc/opt/SUNWconn/ldap/current/ldapfilter.conf"
560Sstevel@tonic-gate #define TEMPLATEFILE	"/etc/opt/SUNWconn/ldap/current/ldaptemplates.conf"
570Sstevel@tonic-gate #define SEARCHFILE	"/etc/opt/SUNWconn/ldap/current/ldapsearchprefs.conf"
580Sstevel@tonic-gate #define FRIENDLYFILE	"/etc/opt/SUNWconn/ldap/current/ldapfriendly"
590Sstevel@tonic-gate 
600Sstevel@tonic-gate /*
610Sstevel@tonic-gate  * FINGER DEFINITIONS
620Sstevel@tonic-gate  */
630Sstevel@tonic-gate 	/* who to bind as */
640Sstevel@tonic-gate #define FINGER_BINDDN		NULL
650Sstevel@tonic-gate 	/* where to search */
660Sstevel@tonic-gate #define FINGER_BASE		DEFAULT_BASE
670Sstevel@tonic-gate 	/* banner to print */
680Sstevel@tonic-gate #define FINGER_BANNER		"X.500 Finger Service...\r\n"
690Sstevel@tonic-gate 	/* who to report errors to */
700Sstevel@tonic-gate #define FINGER_ERRORS		"your local system administrator"
710Sstevel@tonic-gate 	/* what to say if no matches are found */
720Sstevel@tonic-gate #define FINGER_NOMATCH		"Search failed to find anything.\r\n"
730Sstevel@tonic-gate 	/* what to say if the service may be unavailable */
740Sstevel@tonic-gate #define FINGER_UNAVAILABLE	\
750Sstevel@tonic-gate "The X.500 service may be temporarily unavailable.\r\n\
760Sstevel@tonic-gate Please try again later.\r\n"
770Sstevel@tonic-gate 	/* printed if a match has no email address - for disptmp default */
780Sstevel@tonic-gate #define FINGER_NOEMAIL1	"None registered in this service."
790Sstevel@tonic-gate #define FINGER_NOEMAIL2	NULL
800Sstevel@tonic-gate #define FINGER_NOEMAIL	{ FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
810Sstevel@tonic-gate 	/* maximum number of matches returned */
820Sstevel@tonic-gate #define FINGER_SIZELIMIT	50
830Sstevel@tonic-gate 	/* max number of hits displayed in full before a list is presented */
840Sstevel@tonic-gate #define FINGER_LISTLIMIT	1
850Sstevel@tonic-gate 	/* what to exec for "finger @host" */
860Sstevel@tonic-gate #define FINGER_CMD		"/usr/ucb/finger"
870Sstevel@tonic-gate 	/* how to treat aliases when searching */
880Sstevel@tonic-gate #define FINGER_DEREF		LDAP_DEREF_FINDING
890Sstevel@tonic-gate 	/* attribute to use when sorting results */
900Sstevel@tonic-gate #define FINGER_SORT_ATTR	SORT_ATTR
910Sstevel@tonic-gate 	/* enable ufn support */
920Sstevel@tonic-gate #define FINGER_UFN
930Sstevel@tonic-gate 	/* timeout for searches */
940Sstevel@tonic-gate #define FINGER_TIMEOUT		60
950Sstevel@tonic-gate 	/* number of DN components to show in entry displays */
960Sstevel@tonic-gate #define FINGER_RDNCOUNT		DEFAULT_RDNCOUNT
970Sstevel@tonic-gate 
980Sstevel@tonic-gate /*
990Sstevel@tonic-gate  * GO500 GOPHER GATEWAY DEFINITIONS
1000Sstevel@tonic-gate  */
1010Sstevel@tonic-gate 	/* who to bind as */
1020Sstevel@tonic-gate #define GO500_BINDDN	NULL
1030Sstevel@tonic-gate 	/* where to search */
1040Sstevel@tonic-gate #define GO500_BASE	DEFAULT_BASE
1050Sstevel@tonic-gate 	/* port on which to listen */
1060Sstevel@tonic-gate #define GO500_PORT	5555
1070Sstevel@tonic-gate 	/* how to handle aliases */
1080Sstevel@tonic-gate #define GO500_DEREF	LDAP_DEREF_FINDING
1090Sstevel@tonic-gate 	/* attribute to use when sorting results */
1100Sstevel@tonic-gate #define GO500_SORT_ATTR	SORT_ATTR
1110Sstevel@tonic-gate 	/* timeout for searches */
1120Sstevel@tonic-gate #define GO500_TIMEOUT	180
1130Sstevel@tonic-gate 	/* enable ufn support */
1140Sstevel@tonic-gate #define GO500_UFN
1150Sstevel@tonic-gate 	/*
1160Sstevel@tonic-gate 	 * only set and uncomment this if your hostname() does not return
1170Sstevel@tonic-gate 	 * a fully qualified hostname
1180Sstevel@tonic-gate 	 */
1190Sstevel@tonic-gate /* #define GO500_HOSTNAME	"fully.qualified.hostname.here" */
1200Sstevel@tonic-gate 	/* number of DN components to show in entry displays */
1210Sstevel@tonic-gate #define GO500_RDNCOUNT		DEFAULT_RDNCOUNT
1220Sstevel@tonic-gate 
1230Sstevel@tonic-gate /*
1240Sstevel@tonic-gate  * GO500GW GOPHER GATEWAY DEFINITIONS
1250Sstevel@tonic-gate  */
1260Sstevel@tonic-gate 	/* who to bind as */
1270Sstevel@tonic-gate #define GO500GW_BINDDN		NULL
1280Sstevel@tonic-gate 	/* where the helpfile lives */
1290Sstevel@tonic-gate #define GO500GW_HELPFILE	"go500gw.help"
1300Sstevel@tonic-gate 	/* port on which to listen */
1310Sstevel@tonic-gate #define GO500GW_PORT		7777
1320Sstevel@tonic-gate 	/* timeout on all searches */
1330Sstevel@tonic-gate #define GO500GW_TIMEOUT		180
1340Sstevel@tonic-gate 	/* enable ufn support */
1350Sstevel@tonic-gate #define GO500GW_UFN
1360Sstevel@tonic-gate 	/* attribute to use when sorting results */
1370Sstevel@tonic-gate #define GO500GW_SORT_ATTR	SORT_ATTR
1380Sstevel@tonic-gate 	/*
1390Sstevel@tonic-gate 	 * only set and uncomment this if your hostname() does not return
1400Sstevel@tonic-gate 	 * a fully qualified hostname
1410Sstevel@tonic-gate 	 */
1420Sstevel@tonic-gate /* #define GO500GW_HOSTNAME	"fully.qualified.hostname.here" */
1430Sstevel@tonic-gate 	/* number of DN components to show in entry displays */
1440Sstevel@tonic-gate #define GO500GW_RDNCOUNT	DEFAULT_RDNCOUNT
1450Sstevel@tonic-gate 
1460Sstevel@tonic-gate /*
1470Sstevel@tonic-gate  * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
1480Sstevel@tonic-gate  */
1490Sstevel@tonic-gate 	/* who to bind as */
1500Sstevel@tonic-gate #define RCPT500_BINDDN		NULL
1510Sstevel@tonic-gate 	/* where the helpfile lives */
1520Sstevel@tonic-gate #define RCPT500_HELPFILE	"rcpt500.help"
1530Sstevel@tonic-gate 	/* maximum number of matches returned */
1540Sstevel@tonic-gate #define RCPT500_SIZELIMIT	50
1550Sstevel@tonic-gate 	/* address replies will appear to come from */
1560Sstevel@tonic-gate #define RCPT500_FROM		"\"X.500 Query Program\" <X500-Query>"
1570Sstevel@tonic-gate 	/* command that will accept an RFC822 message text on standard
1580Sstevel@tonic-gate 	   input, and send it.  sendmail -t does this nicely. */
1590Sstevel@tonic-gate #define RCPT500_PIPEMAILCMD	"/usr/lib/sendmail -t"
1600Sstevel@tonic-gate         /* where to search */
1610Sstevel@tonic-gate #define RCPT500_BASE             DEFAULT_BASE
1620Sstevel@tonic-gate 	/* attribute to use when sorting results */
1630Sstevel@tonic-gate #define RCPT500_SORT_ATTR	SORT_ATTR
1640Sstevel@tonic-gate 	/* max number of hits displayed in full before a list is presented */
1650Sstevel@tonic-gate #define RCPT500_LISTLIMIT	1
1660Sstevel@tonic-gate 	/* enable ufn support */
1670Sstevel@tonic-gate #define RCPT500_UFN
1680Sstevel@tonic-gate 	/* number of DN components to show in entry displays */
1690Sstevel@tonic-gate #define RCPT500_RDNCOUNT	DEFAULT_RDNCOUNT
1700Sstevel@tonic-gate 
1710Sstevel@tonic-gate /*
1720Sstevel@tonic-gate  * LDAPSEARCH TOOL
1730Sstevel@tonic-gate  */
1740Sstevel@tonic-gate 	/* who to bind as */
1750Sstevel@tonic-gate #define LDAPSEARCH_BINDDN	NULL
1760Sstevel@tonic-gate 	/* search base */
1770Sstevel@tonic-gate #define LDAPSEARCH_BASE		DEFAULT_BASE
1780Sstevel@tonic-gate 
1790Sstevel@tonic-gate /*
1800Sstevel@tonic-gate  * LDAPMODIFY TOOL
1810Sstevel@tonic-gate  */
1820Sstevel@tonic-gate 	/* who to bind as */
1830Sstevel@tonic-gate #define LDAPMODIFY_BINDDN	NULL
1840Sstevel@tonic-gate 	/* search base */
1850Sstevel@tonic-gate #define LDAPMODIFY_BASE		DEFAULT_BASE
1860Sstevel@tonic-gate 
1870Sstevel@tonic-gate /*
1880Sstevel@tonic-gate  * LDAPDELETE TOOL
1890Sstevel@tonic-gate  */
1900Sstevel@tonic-gate 	/* who to bind as */
1910Sstevel@tonic-gate #define LDAPDELETE_BINDDN	NULL
1920Sstevel@tonic-gate 	/* search base */
1930Sstevel@tonic-gate #define LDAPDELETE_BASE		DEFAULT_BASE
1940Sstevel@tonic-gate 
1950Sstevel@tonic-gate /*
1960Sstevel@tonic-gate  * LDAPMODRDN TOOL
1970Sstevel@tonic-gate  */
1980Sstevel@tonic-gate 	/* who to bind as */
1990Sstevel@tonic-gate #define LDAPMODRDN_BINDDN	NULL
2000Sstevel@tonic-gate 	/* search base */
2010Sstevel@tonic-gate #define LDAPMODRDN_BASE		DEFAULT_BASE
2020Sstevel@tonic-gate 
2030Sstevel@tonic-gate /*
2040Sstevel@tonic-gate  * MAIL500 MAILER DEFINITIONS
2050Sstevel@tonic-gate  */
2060Sstevel@tonic-gate 	/* who to bind as */
2070Sstevel@tonic-gate #define MAIL500_BINDDN		NULL
2080Sstevel@tonic-gate 	/* max number of ambiguous matches reported */
2090Sstevel@tonic-gate #define MAIL500_MAXAMBIGUOUS	10
2100Sstevel@tonic-gate 	/* max subscribers allowed (size limit when searching for them ) */
2110Sstevel@tonic-gate #define MAIL500_MAXGROUPMEMBERS	LDAP_NO_LIMIT
2120Sstevel@tonic-gate 	/* timeout for all searches */
2130Sstevel@tonic-gate #define MAIL500_TIMEOUT		180
2140Sstevel@tonic-gate 	/* sendmail location - mail500 needs to exec this */
2150Sstevel@tonic-gate #define MAIL500_SENDMAIL	"/usr/lib/sendmail"
2160Sstevel@tonic-gate 
2170Sstevel@tonic-gate /*
2180Sstevel@tonic-gate  * UD DEFINITIONS
2190Sstevel@tonic-gate  */
2200Sstevel@tonic-gate 	/* ud configuration file */
2210Sstevel@tonic-gate #define UD_CONFIG_FILE		"/etc/opt/SUNWconn/ldap/current/ud.conf"
2220Sstevel@tonic-gate 	/* default editor */
2230Sstevel@tonic-gate #define UD_DEFAULT_EDITOR	"/usr/ucb/vi"
2240Sstevel@tonic-gate 	/* default bbasename of user config file */
2250Sstevel@tonic-gate #define UD_USER_CONFIG_FILE	".udrc"
2260Sstevel@tonic-gate 	/* default user to bind as */
2270Sstevel@tonic-gate #define UD_BINDDN		NULL
2280Sstevel@tonic-gate 	/* default password to bind with */
2290Sstevel@tonic-gate #define UD_PASSWD		NULL
2300Sstevel@tonic-gate 	/* default search base */
2310Sstevel@tonic-gate #define UD_BASE			DEFAULT_BASE
2320Sstevel@tonic-gate 	/* default base where groups are created */
2330Sstevel@tonic-gate #define UD_WHERE_GROUPS_ARE_CREATED	""
2340Sstevel@tonic-gate 	/* default base below which all groups live */
2350Sstevel@tonic-gate #define UD_WHERE_ALL_GROUPS_LIVE	""
2360Sstevel@tonic-gate 
2370Sstevel@tonic-gate /*
2380Sstevel@tonic-gate  * FAX500 DEFINITIONS
2390Sstevel@tonic-gate  */
2400Sstevel@tonic-gate 	/* what to bind as */
2410Sstevel@tonic-gate #define FAX_BINDDN	NULL
2420Sstevel@tonic-gate 	/* how long to wait for searches */
2430Sstevel@tonic-gate #define FAX_TIMEOUT		180
2440Sstevel@tonic-gate 	/* maximum number of ambiguous matches reported */
2450Sstevel@tonic-gate #define FAX_MAXAMBIGUOUS	10
2460Sstevel@tonic-gate 	/* maximum number of members allowed */
2470Sstevel@tonic-gate #define FAX_MAXMEMBERS		LDAP_NO_LIMIT
2480Sstevel@tonic-gate 	/* program to send mail */
2490Sstevel@tonic-gate #define FAX_SENDMAIL		"/usr/lib/sendmail"
2500Sstevel@tonic-gate 
2510Sstevel@tonic-gate /*
2520Sstevel@tonic-gate  * RP500 DEFINITIONS
2530Sstevel@tonic-gate  */
2540Sstevel@tonic-gate 	/* what to bind as */
2550Sstevel@tonic-gate #define RP_BINDDN	NULL
2560Sstevel@tonic-gate 	/* prefix to add to non-fully-qualified numbers */
2570Sstevel@tonic-gate #define RP_PHONEPREFIX	""
2580Sstevel@tonic-gate 
2590Sstevel@tonic-gate /*
2600Sstevel@tonic-gate  * SLAPD DEFINITIONS
2610Sstevel@tonic-gate  */
2620Sstevel@tonic-gate 	/* location of the default slapd config file */
2630Sstevel@tonic-gate #define SLAPD_DEFAULT_CONFIGFILE	"/etc/opt/SUNWconn/ldap/current/slapd.conf"
2640Sstevel@tonic-gate 	/* default sizelimit on number of entries from a search */
2650Sstevel@tonic-gate #define SLAPD_DEFAULT_SIZELIMIT		10000
2660Sstevel@tonic-gate 	/* default timelimit to spend on a search */
2670Sstevel@tonic-gate #define SLAPD_DEFAULT_TIMELIMIT		3600
2680Sstevel@tonic-gate 	/* location of the slapd pid file */
2690Sstevel@tonic-gate #define SLAPD_PIDFILE			"/var/opt/SUNWconn/ldap/log/slapd.pid"
2700Sstevel@tonic-gate 	/* location of the slapd args file */
2710Sstevel@tonic-gate #define SLAPD_ARGSFILE			"/var/opt/SUNWconn/ldap/log/slapd.args"
2720Sstevel@tonic-gate 	/* dn of the special "monitor" entry */
2730Sstevel@tonic-gate #define SLAPD_MONITOR_DN		"cn=monitor"
2740Sstevel@tonic-gate 	/* dn of the special "config" entry */
2750Sstevel@tonic-gate #define SLAPD_CONFIG_DN			"cn=config"
2760Sstevel@tonic-gate 	/* minimum max ids that a single index entry can map to in ldbm */
2770Sstevel@tonic-gate #define SLAPD_LDBM_MIN_MAXIDS		4000
2780Sstevel@tonic-gate 
2790Sstevel@tonic-gate #endif /* _CONFIG_H */
280