1

Topic: Using LDAP(windows server 2008 AD) for iRedmail backend

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: centos 5.4
- Related log if you're reporting an issue: connect to LDAP problem
====

I Follow this step to setup the iRedmail for LDAP

http://www.iredmail.org/wiki/index.php? … y.iRedMail

after I type this command:

postmap -q user@example.com ldap:/etc/postfix/ad_virtual_mailbox_maps.cf

it nothing returned by the this command

and I turn on the debug mode on ad_virtual_mailbox_maps.cf

postmap: dict_ldap_debug: ldap_create
postmap: dict_ldap_debug: ldap_url_parse_ext(ldap://192.168.5.2:389)
postmap: dict_ldap_debug: ldap_sasl_bind
postmap: dict_ldap_debug: ldap_send_initial_request
postmap: dict_ldap_debug: ldap_new_connection 1 1 0
postmap: dict_ldap_debug: ldap_int_open_connection
postmap: dict_ldap_debug: ldap_connect_to_host: TCP 192.168.5.2:389
postmap: dict_ldap_debug: ldap_new_socket: 4
postmap: dict_ldap_debug: ldap_prepare_socket: 4
postmap: dict_ldap_debug: ldap_connect_to_host: Trying 192.168.5.2:389
postmap: dict_ldap_debug: ldap_connect_timeout: fd: 4 tm: 10 async: 0
postmap: dict_ldap_debug: ldap_ndelay_on: 4
postmap: dict_ldap_debug: ldap_is_sock_ready: 4
postmap: dict_ldap_debug: ldap_ndelay_off: 4
postmap: dict_ldap_debug: ldap_open_defconn: successful
postmap: dict_ldap_debug: ldap_send_server_request
postmap: dict_ldap_debug: ber_scanf fmt ({it) ber:
postmap: dict_ldap_debug: ber_scanf fmt ({i) ber:
postmap: dict_ldap_debug: ber_flush: 44 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x2ba51a27a870 msgid 1
postmap: dict_ldap_debug: wait4msg ld 0x2ba51a27a870 msgid 1 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x2ba51a27a870 msgid 1 all 1
** ld 0x2ba51a27a870 Connections:
* host: 192.168.5.2  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Wed Jul 10 07:18:58 2013

** ld 0x2ba51a27a870 Outstanding Requests:
* msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
** ld 0x2ba51a27a870 Response Queue:
   Empty
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x2ba51a27a870 msgid 1 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x2ba51a27a870 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x2ba51a27a870 msgid 1 all 1
postmap: dict_ldap_debug: ber_get_next
postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 16 contents:
postmap: dict_ldap_debug: read1msg: ld 0x2ba51a27a870 msgid 1 message type bind
postmap: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
postmap: dict_ldap_debug: read1msg: ld 0x2ba51a27a870 0 new referrals
postmap: dict_ldap_debug: read1msg:  mark request completed, ld 0x2ba51a27a870 msgid 1
postmap: dict_ldap_debug: request done: ld 0x2ba51a27a870 msgid 1
postmap: dict_ldap_debug: res_errno: 0, res_error: <>, res_matched: <>
postmap: dict_ldap_debug: ldap_free_request (origid 1, msgid 1)
postmap: dict_ldap_debug: ldap_parse_sasl_bind_result
postmap: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
postmap: dict_ldap_debug: ldap_msgfree
postmap: dict_ldap_debug: ldap_search_ext
postmap: dict_ldap_debug: put_filter: "(&(objectclass=person)(userPrincipalName=administrator@hkus.com))"
postmap: dict_ldap_debug: put_filter: AND
postmap: dict_ldap_debug: put_filter_list "(objectclass=person)(userPrincipalName=administrator@hkus.com)"
postmap: dict_ldap_debug: put_filter: "(objectclass=person)"
postmap: dict_ldap_debug: put_filter: simple
postmap: dict_ldap_debug: put_simple_filter: "objectclass=person"
postmap: dict_ldap_debug: put_filter: "(userPrincipalName=administrator@hkus.com)"
postmap: dict_ldap_debug: put_filter: simple
postmap: dict_ldap_debug: put_simple_filter: "userPrincipalName=administrator@hkus.com"
postmap: dict_ldap_debug: ldap_send_initial_request
postmap: dict_ldap_debug: ldap_send_server_request
postmap: dict_ldap_debug: ber_scanf fmt ({it) ber:
postmap: dict_ldap_debug: ber_scanf fmt ({) ber:
postmap: dict_ldap_debug: ber_flush: 140 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x2ba51a27a870 msgid 2
postmap: dict_ldap_debug: wait4msg ld 0x2ba51a27a870 msgid 2 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x2ba51a27a870 msgid 2 all 1
** ld 0x2ba51a27a870 Connections:
* host: 192.168.5.2  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Wed Jul 10 07:18:58 2013

** ld 0x2ba51a27a870 Outstanding Requests:
* msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
** ld 0x2ba51a27a870 Response Queue:
   Empty
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x2ba51a27a870 msgid 2 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x2ba51a27a870 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x2ba51a27a870 msgid 2 all 1
postmap: dict_ldap_debug: ber_get_next
postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 16 contents:
postmap: dict_ldap_debug: read1msg: ld 0x2ba51a27a870 msgid 2 message type search-result
postmap: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
postmap: dict_ldap_debug: read1msg: ld 0x2ba51a27a870 0 new referrals
postmap: dict_ldap_debug: read1msg:  mark request completed, ld 0x2ba51a27a870 msgid 2
postmap: dict_ldap_debug: request done: ld 0x2ba51a27a870 msgid 2
postmap: dict_ldap_debug: res_errno: 0, res_error: <>, res_matched: <>
postmap: dict_ldap_debug: ldap_free_request (origid 2, msgid 2)
postmap: dict_ldap_debug: ldap_parse_result
postmap: dict_ldap_debug: ber_scanf fmt ({iaa) ber:
postmap: dict_ldap_debug: ber_scanf fmt (}) ber:
postmap: dict_ldap_debug: ldap_msgfree
postmap: dict_ldap_debug: ldap_free_connection 1 1
postmap: dict_ldap_debug: ldap_send_unbind
postmap: dict_ldap_debug: ber_flush: 7 bytes to sd 4
postmap: dict_ldap_debug: ldap_free_connection: actually freed


Please Help

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Using LDAP(windows server 2008 AD) for iRedmail backend

Do you have a mail user with below attribute/value: "(&(objectclass=person)(userPrincipalName=administrator@hkus.com))"?