Topic: Help pls. Integrate Microsoft Active Directory Error
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.4
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu server 22.04.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
When i query mail user account with below command:
# postmap -q user@example.com ldap:/etc/postfix/ad_sender_login_maps.cf
i have:
postmap: warning: dict_ldap_lookup: Search error 10: Referral
postmap: fatal: table ldap:/etc/postfix/ad_virtual_mailbox_maps.cf: query error: Application error
postmap: dict_ldap_debug: ldap_create
postmap: dict_ldap_debug: ldap_url_parse_ext(ldap://server-ad.test.com: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 server-ad.test.com: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.88.3:389
postmap: dict_ldap_debug: ldap_pvt_connect: fd: 4 tm: 10 async: 0
postmap: dict_ldap_debug: ldap_ndelay_on: 4
postmap: dict_ldap_debug: attempting to connect:
postmap: dict_ldap_debug: connect errno: 115
postmap: dict_ldap_debug: ldap_int_poll: fd: 4 tm: 10
postmap: dict_ldap_debug: ldap_is_sock_ready: 4
postmap: dict_ldap_debug: ldap_ndelay_off: 4
postmap: dict_ldap_debug: ldap_pvt_connect: 0
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_flush2: 32 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x55c914054930 msgid 1
postmap: dict_ldap_debug: wait4msg ld 0x55c914054930 msgid 1 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x55c914054930 msgid 1 all 1
postmap: dict_ldap_debug: ** ld 0x55c914054930 Connections:
postmap: dict_ldap_debug: * host: server-ad.test.com port: 389 (default)
postmap: dict_ldap_debug: * from: IP=192.168.88.16:50762
postmap: dict_ldap_debug: refcnt: 2 status: Connected
postmap: dict_ldap_debug: last used: Mon Sep 18 10:51:54 2023
postmap: dict_ldap_debug:
postmap: dict_ldap_debug: ** ld 0x55c914054930 Outstanding Requests:
postmap: dict_ldap_debug: * msgid 1, origid 1, status InProgress
postmap: dict_ldap_debug: outstanding referrals 0, parent count 0
postmap: dict_ldap_debug: ld 0x55c914054930 request count 1 (abandoned 0)
postmap: dict_ldap_debug: ** ld 0x55c914054930 Response Queue:
postmap: dict_ldap_debug: Empty
postmap: dict_ldap_debug: ld 0x55c914054930 response count 0
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x55c914054930 msgid 1 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x55c914054930 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x55c914054930 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: ldap_find_request_by_msgid: msgid 1, lr 0x55c9140584f0 lr->lr_refcnt = 1
postmap: dict_ldap_debug: read1msg: ld 0x55c914054930 msgid 1 message type bind
postmap: dict_ldap_debug: ber_scanf fmt ({eAA) ber:
postmap: dict_ldap_debug: read1msg: ld 0x55c914054930 0 new referrals
postmap: dict_ldap_debug: read1msg: mark request completed, ld 0x55c914054930 msgid 1
postmap: dict_ldap_debug: request done: ld 0x55c914054930 msgid 1
postmap: dict_ldap_debug: res_errno: 0, res_error: <>, res_matched: <>
postmap: dict_ldap_debug: ldap_return_request: lrx 0x55c9140584f0, lr 0x55c9140584f0
postmap: dict_ldap_debug: ldap_return_request: lrx->lr_msgid 1, lrx->lr_refcnt is now 0, lr is still present
postmap: dict_ldap_debug: ldap_free_request (origid 1, msgid 1)
postmap: dict_ldap_debug: ldap_free_request_int: lr 0x55c9140584f0 msgid 1 removed
postmap: dict_ldap_debug: ldap_do_free_request: asked to free lr 0x55c9140584f0 msgid 1 refcnt 0
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_search_ext
postmap: dict_ldap_debug: put_filter: "(&(objectclass=person)(userPrincipalName=user@test.com))"
postmap: dict_ldap_debug: put_filter: AND
postmap: dict_ldap_debug: put_filter_list "(objectclass=person)(userPrincipalName=user@test.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=user@test.com)"
postmap: dict_ldap_debug: put_filter: simple
postmap: dict_ldap_debug: put_simple_filter: "userPrincipalName=user@test.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_flush2: 139 bytes to sd 4
postmap: dict_ldap_debug: ldap_result ld 0x55c914054930 msgid 2
postmap: dict_ldap_debug: wait4msg ld 0x55c914054930 msgid 2 (timeout 10000000 usec)
postmap: dict_ldap_debug: wait4msg continue ld 0x55c914054930 msgid 2 all 1
postmap: dict_ldap_debug: ** ld 0x55c914054930 Connections:
postmap: dict_ldap_debug: * host: server-ad.test.com port: 389 (default)
postmap: dict_ldap_debug: * from: IP=192.168.88.16:50762
postmap: dict_ldap_debug: refcnt: 2 status: Connected
postmap: dict_ldap_debug: last used: Mon Sep 18 10:51:54 2023
postmap: dict_ldap_debug:
postmap: dict_ldap_debug: ** ld 0x55c914054930 Outstanding Requests:
postmap: dict_ldap_debug: * msgid 2, origid 2, status InProgress
postmap: dict_ldap_debug: outstanding referrals 0, parent count 0
postmap: dict_ldap_debug: ld 0x55c914054930 request count 1 (abandoned 0)
postmap: dict_ldap_debug: ** ld 0x55c914054930 Response Queue:
postmap: dict_ldap_debug: Empty
postmap: dict_ldap_debug: ld 0x55c914054930 response count 0
postmap: dict_ldap_debug: ldap_chkResponseList ld 0x55c914054930 msgid 2 all 1
postmap: dict_ldap_debug: ldap_chkResponseList returns ld 0x55c914054930 NULL
postmap: dict_ldap_debug: ldap_int_select
postmap: dict_ldap_debug: read1msg: ld 0x55c914054930 msgid 2 all 1
postmap: dict_ldap_debug: ber_get_next
postmap: dict_ldap_debug: ber_get_next: tag 0x30 len 149 contents:
postmap: dict_ldap_debug: ldap_find_request_by_msgid: msgid 2, lr 0x55c914058a90 lr->lr_refcnt = 1
postmap: dict_ldap_debug: read1msg: ld 0x55c914054930 msgid 2 message type search-result
postmap: dict_ldap_debug: ber_scanf fmt ({eAA) ber:
postmap: dict_ldap_debug: read1msg: ld 0x55c914054930 0 new referrals
postmap: dict_ldap_debug: read1msg: mark request completed, ld 0x55c914054930 msgid 2
postmap: dict_ldap_debug: request done: ld 0x55c914054930 msgid 2
postmap: dict_ldap_debug: res_errno: 10, res_error: <0000202B: RefErr: DSID-0310084B, data 0, 1 access points??ref 1: 'example.com'?>, res_matched: < >
postmap: dict_ldap_debug: ldap_return_request: lrx 0x55c914058a90, lr 0x55c914058a90
postmap: dict_ldap_debug: ldap_return_request: lrx->lr_msgid 2, lrx->lr_refcnt is now 0, lr is still present
postmap: dict_ldap_debug: ldap_free_request (origid 2, msgid 2)
postmap: dict_ldap_debug: ldap_free_request_int: lr 0x55c914058a90 msgid 2 removed
postmap: dict_ldap_debug: ldap_do_free_request: asked to free lr 0x55c914058a90 msgid 2 refcnt 0
postmap: dict_ldap_debug: ldap_parse_result
postmap: dict_ldap_debug: ber_scanf fmt ({iAA) ber:
postmap: dict_ldap_debug: ber_scanf fmt (v) ber:
postmap: dict_ldap_debug: ber_scanf fmt (}) ber:
postmap: dict_ldap_debug: ldap_err2string
postmap: warning: dict_ldap_lookup: Search error 10: Referral
postmap: dict_ldap_debug: ldap_free_connection 1 1
postmap: dict_ldap_debug: ldap_send_unbind
postmap: dict_ldap_debug: ber_flush2: 7 bytes to sd 4
postmap: dict_ldap_debug: ldap_free_connection: actually freed
postmap: dict_ldap_debug: ldap_msgfree
postmap: fatal: table ldap:/etc/postfix/ad_virtual_mailbox_maps.cf: query error: Application error
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.