OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: +archive.postfix-usersutdallas.edu
Date: Thu Jun 07 2001 - 10:16:45 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    On 7 Jun 2001, Ralf Hildebrandt wrote:

    > Postfix can use LDAP for all maps.

    Oh, that reminds me, had to apply the following patch to get
    snapshot-20010525 to compile with the iPlanet SDK 4.14.

    I haven't tried the 5.0 SDK yet. Perhaps later this afternoon.

    -Amos

    *** ../../orig/src/util/dict_ldap.c Thu May 24 14:36:42 2001
    --- src/util/dict_ldap.c Sun May 27 18:16:40 2001
    ***************
    *** 151,156 ****
    --- 151,160 ----
          void (*saved_alarm) (int);
          int rc = 0;

    + #ifdef LDAP_API_FEATURE_X_MEMCACHE
    + LDAPMemCache *dircache;
    + #endif
    +
      #ifdef LDAP_OPT_NETWORK_TIMEOUT
          struct timeval mytimeval;

    ***************
    *** 247,252 ****
    --- 251,277 ----
                       myname, dict_ldap->cache_size, dict_ldap->ldapsource,
                       dict_ldap->cache_expiry);

    + #ifdef LDAP_API_FEATURE_X_MEMCACHE
    + rc = ldap_memcache_init(dict_ldap->cache_expiry, dict_ldap->cache_size,
    + NULL, NULL, &dircache);
    + if (rc != LDAP_SUCCESS) {
    + msg_warn
    + ("%s: Unable to configure cache for %s: %d (%s) -- continuing",
    + myname, dict_ldap->ldapsource, rc, ldap_err2string(rc));
    + } else {
    + rc = ldap_memcache_set(dict_ldap->ld, dircache);
    + if (rc != LDAP_SUCCESS) {
    + msg_warn
    + ("%s: Unable to configure cache for %s: %d (%s) -- continuing",
    + myname, dict_ldap->ldapsource, rc, ldap_err2string(rc));
    + } else {
    + if (msg_verbose)
    + msg_info("%s: Caching enabled for %s",
    + myname, dict_ldap->ldapsource);
    + }
    + }
    + #else
    +
              rc = ldap_enable_cache(dict_ldap->ld, dict_ldap->cache_expiry,
                                     dict_ldap->cache_size);
              if (rc != LDAP_SUCCESS) {
    ***************
    *** 258,263 ****
    --- 283,290 ----
                      msg_info("%s: Caching enabled for %s",
                               myname, dict_ldap->ldapsource);
              }
    +
    + #endif
          }
          if (msg_verbose)
              msg_info("%s: Cached connection handle for LDAP source %s",

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users