1 /* 2 * 3 * Portions Copyright 1998 Sun Microsystems, Inc. All rights reserved. 4 * Use is subject to license terms. 5 * 6 * File chamged to fit with Sun Standards 7 * 8 */ 9 10 #pragma ident "%Z%%M% %I% %E% SMI" 11 12 /* 13 * Copyright (c) 1994 Regents of the University of Michigan. 14 * All rights reserved. 15 * 16 * Redistribution and use in source and binary forms are permitted 17 * provided that this notice is preserved and that due credit is given 18 * to the University of Michigan at Ann Arbor. The name of the University 19 * may not be used to endorse or promote products derived from this 20 * software without specific prior written permission. This software 21 * is provided ``as is'' without express or implied warranty. 22 */ 23 24 #ifndef _CONFIG_H 25 #define _CONFIG_H 26 27 /* 28 * config.h for LDAP -- edit this file to customize LDAP client behavior. 29 * NO platform-specific definitions should be placed in this file. 30 * Note that this is NOT used by the LDAP or LBER libraries. 31 */ 32 33 /* 34 * SHARED DEFINITIONS - things you should change 35 */ 36 /* default ldap host */ 37 #define LDAPHOST "localhost" 38 /* default place to start searching */ 39 #define DEFAULT_BASE "c=US" 40 41 /********************************************************************* 42 * * 43 * You probably do not need to edit anything below this point * 44 * * 45 *********************************************************************/ 46 47 /* 48 * SHARED DEFINITIONS - other things you can change 49 */ 50 /* default attribute to use when sorting entries, NULL => sort by DN */ 51 #define SORT_ATTR NULL 52 /* default count of DN components to show in entry displays */ 53 #define DEFAULT_RDNCOUNT 2 54 /* default config file locations */ 55 #define FILTERFILE "/etc/opt/SUNWconn/ldap/current/ldapfilter.conf" 56 #define TEMPLATEFILE "/etc/opt/SUNWconn/ldap/current/ldaptemplates.conf" 57 #define SEARCHFILE "/etc/opt/SUNWconn/ldap/current/ldapsearchprefs.conf" 58 #define FRIENDLYFILE "/etc/opt/SUNWconn/ldap/current/ldapfriendly" 59 60 /* 61 * FINGER DEFINITIONS 62 */ 63 /* who to bind as */ 64 #define FINGER_BINDDN NULL 65 /* where to search */ 66 #define FINGER_BASE DEFAULT_BASE 67 /* banner to print */ 68 #define FINGER_BANNER "X.500 Finger Service...\r\n" 69 /* who to report errors to */ 70 #define FINGER_ERRORS "your local system administrator" 71 /* what to say if no matches are found */ 72 #define FINGER_NOMATCH "Search failed to find anything.\r\n" 73 /* what to say if the service may be unavailable */ 74 #define FINGER_UNAVAILABLE \ 75 "The X.500 service may be temporarily unavailable.\r\n\ 76 Please try again later.\r\n" 77 /* printed if a match has no email address - for disptmp default */ 78 #define FINGER_NOEMAIL1 "None registered in this service." 79 #define FINGER_NOEMAIL2 NULL 80 #define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL } 81 /* maximum number of matches returned */ 82 #define FINGER_SIZELIMIT 50 83 /* max number of hits displayed in full before a list is presented */ 84 #define FINGER_LISTLIMIT 1 85 /* what to exec for "finger @host" */ 86 #define FINGER_CMD "/usr/ucb/finger" 87 /* how to treat aliases when searching */ 88 #define FINGER_DEREF LDAP_DEREF_FINDING 89 /* attribute to use when sorting results */ 90 #define FINGER_SORT_ATTR SORT_ATTR 91 /* enable ufn support */ 92 #define FINGER_UFN 93 /* timeout for searches */ 94 #define FINGER_TIMEOUT 60 95 /* number of DN components to show in entry displays */ 96 #define FINGER_RDNCOUNT DEFAULT_RDNCOUNT 97 98 /* 99 * GO500 GOPHER GATEWAY DEFINITIONS 100 */ 101 /* who to bind as */ 102 #define GO500_BINDDN NULL 103 /* where to search */ 104 #define GO500_BASE DEFAULT_BASE 105 /* port on which to listen */ 106 #define GO500_PORT 5555 107 /* how to handle aliases */ 108 #define GO500_DEREF LDAP_DEREF_FINDING 109 /* attribute to use when sorting results */ 110 #define GO500_SORT_ATTR SORT_ATTR 111 /* timeout for searches */ 112 #define GO500_TIMEOUT 180 113 /* enable ufn support */ 114 #define GO500_UFN 115 /* 116 * only set and uncomment this if your hostname() does not return 117 * a fully qualified hostname 118 */ 119 /* #define GO500_HOSTNAME "fully.qualified.hostname.here" */ 120 /* number of DN components to show in entry displays */ 121 #define GO500_RDNCOUNT DEFAULT_RDNCOUNT 122 123 /* 124 * GO500GW GOPHER GATEWAY DEFINITIONS 125 */ 126 /* who to bind as */ 127 #define GO500GW_BINDDN NULL 128 /* where the helpfile lives */ 129 #define GO500GW_HELPFILE "go500gw.help" 130 /* port on which to listen */ 131 #define GO500GW_PORT 7777 132 /* timeout on all searches */ 133 #define GO500GW_TIMEOUT 180 134 /* enable ufn support */ 135 #define GO500GW_UFN 136 /* attribute to use when sorting results */ 137 #define GO500GW_SORT_ATTR SORT_ATTR 138 /* 139 * only set and uncomment this if your hostname() does not return 140 * a fully qualified hostname 141 */ 142 /* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */ 143 /* number of DN components to show in entry displays */ 144 #define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT 145 146 /* 147 * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS 148 */ 149 /* who to bind as */ 150 #define RCPT500_BINDDN NULL 151 /* where the helpfile lives */ 152 #define RCPT500_HELPFILE "rcpt500.help" 153 /* maximum number of matches returned */ 154 #define RCPT500_SIZELIMIT 50 155 /* address replies will appear to come from */ 156 #define RCPT500_FROM "\"X.500 Query Program\" <X500-Query>" 157 /* command that will accept an RFC822 message text on standard 158 input, and send it. sendmail -t does this nicely. */ 159 #define RCPT500_PIPEMAILCMD "/usr/lib/sendmail -t" 160 /* where to search */ 161 #define RCPT500_BASE DEFAULT_BASE 162 /* attribute to use when sorting results */ 163 #define RCPT500_SORT_ATTR SORT_ATTR 164 /* max number of hits displayed in full before a list is presented */ 165 #define RCPT500_LISTLIMIT 1 166 /* enable ufn support */ 167 #define RCPT500_UFN 168 /* number of DN components to show in entry displays */ 169 #define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT 170 171 /* 172 * LDAPSEARCH TOOL 173 */ 174 /* who to bind as */ 175 #define LDAPSEARCH_BINDDN NULL 176 /* search base */ 177 #define LDAPSEARCH_BASE DEFAULT_BASE 178 179 /* 180 * LDAPMODIFY TOOL 181 */ 182 /* who to bind as */ 183 #define LDAPMODIFY_BINDDN NULL 184 /* search base */ 185 #define LDAPMODIFY_BASE DEFAULT_BASE 186 187 /* 188 * LDAPDELETE TOOL 189 */ 190 /* who to bind as */ 191 #define LDAPDELETE_BINDDN NULL 192 /* search base */ 193 #define LDAPDELETE_BASE DEFAULT_BASE 194 195 /* 196 * LDAPMODRDN TOOL 197 */ 198 /* who to bind as */ 199 #define LDAPMODRDN_BINDDN NULL 200 /* search base */ 201 #define LDAPMODRDN_BASE DEFAULT_BASE 202 203 /* 204 * MAIL500 MAILER DEFINITIONS 205 */ 206 /* who to bind as */ 207 #define MAIL500_BINDDN NULL 208 /* max number of ambiguous matches reported */ 209 #define MAIL500_MAXAMBIGUOUS 10 210 /* max subscribers allowed (size limit when searching for them ) */ 211 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT 212 /* timeout for all searches */ 213 #define MAIL500_TIMEOUT 180 214 /* sendmail location - mail500 needs to exec this */ 215 #define MAIL500_SENDMAIL "/usr/lib/sendmail" 216 217 /* 218 * UD DEFINITIONS 219 */ 220 /* ud configuration file */ 221 #define UD_CONFIG_FILE "/etc/opt/SUNWconn/ldap/current/ud.conf" 222 /* default editor */ 223 #define UD_DEFAULT_EDITOR "/usr/ucb/vi" 224 /* default bbasename of user config file */ 225 #define UD_USER_CONFIG_FILE ".udrc" 226 /* default user to bind as */ 227 #define UD_BINDDN NULL 228 /* default password to bind with */ 229 #define UD_PASSWD NULL 230 /* default search base */ 231 #define UD_BASE DEFAULT_BASE 232 /* default base where groups are created */ 233 #define UD_WHERE_GROUPS_ARE_CREATED "" 234 /* default base below which all groups live */ 235 #define UD_WHERE_ALL_GROUPS_LIVE "" 236 237 /* 238 * FAX500 DEFINITIONS 239 */ 240 /* what to bind as */ 241 #define FAX_BINDDN NULL 242 /* how long to wait for searches */ 243 #define FAX_TIMEOUT 180 244 /* maximum number of ambiguous matches reported */ 245 #define FAX_MAXAMBIGUOUS 10 246 /* maximum number of members allowed */ 247 #define FAX_MAXMEMBERS LDAP_NO_LIMIT 248 /* program to send mail */ 249 #define FAX_SENDMAIL "/usr/lib/sendmail" 250 251 /* 252 * RP500 DEFINITIONS 253 */ 254 /* what to bind as */ 255 #define RP_BINDDN NULL 256 /* prefix to add to non-fully-qualified numbers */ 257 #define RP_PHONEPREFIX "" 258 259 /* 260 * SLAPD DEFINITIONS 261 */ 262 /* location of the default slapd config file */ 263 #define SLAPD_DEFAULT_CONFIGFILE "/etc/opt/SUNWconn/ldap/current/slapd.conf" 264 /* default sizelimit on number of entries from a search */ 265 #define SLAPD_DEFAULT_SIZELIMIT 10000 266 /* default timelimit to spend on a search */ 267 #define SLAPD_DEFAULT_TIMELIMIT 3600 268 /* location of the slapd pid file */ 269 #define SLAPD_PIDFILE "/var/opt/SUNWconn/ldap/log/slapd.pid" 270 /* location of the slapd args file */ 271 #define SLAPD_ARGSFILE "/var/opt/SUNWconn/ldap/log/slapd.args" 272 /* dn of the special "monitor" entry */ 273 #define SLAPD_MONITOR_DN "cn=monitor" 274 /* dn of the special "config" entry */ 275 #define SLAPD_CONFIG_DN "cn=config" 276 /* minimum max ids that a single index entry can map to in ldbm */ 277 #define SLAPD_LDBM_MIN_MAXIDS 4000 278 279 #endif /* _CONFIG_H */ 280