[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: using openldap as a translation layer.



I appologize, they were not lined up in one column in the config, the mail client stripped the leading whitespace.


I didn't realize that was specific to filters. So this is a search then? ============================================================ overlay rwm rwm-rewriteEngine off

#note: I changed the name of the filter since the original name wasn't usefully descriptive
rwm-rewriteMap
ldap
"realMailSearchLookup"
"ldap://the-server:389/ou=People,dc=osu,dc=edu?entryDN?sub";


rwm-rewriteContext searchFilter


rwm-rewriteRule "^\\(&\\(objectClass=person\\)\\(uid=([a-zA-Z]+\\.[0-9]+)\\)\\)$" "${RealMailSearchLookup(mail=$1@osu.edu)}" ":@" ":@"


#added because it didn't seem to be matching anything #rwm-rewriteContext searchDN alias searchFilter #rwm-rewriteContext searchFilterAttrDN alias searchFilter ============================================================



just for grins, I tried this, but with no luck either:
============================================================
rwm-rewriteRule
 "^(.*)\\(&\\(objectClass=person\\)\\(uid=([a-zA-Z]+\\.[0-9]+)\\)\\)(.*)$"
 "$1(&(objectClass=person)(mail=$2@osu.edu))$3"
 "@"
============================================================

Thank you,
-Jim Stapleton



Addendum:
Here's the slapd log output from the query (startup portion truncated due to length, but it can be given), in case it can give you an idea of what the server is trying to do.


slap_listener(ldap:///)
daemon: listen=5, new connection on 6
daemon: added 6r (active) listener=0x0
conn=0 fd=6 ACCEPT from IP=127.0.0.1:1377 (IP=0.0.0.0:389)
daemon: select: listen=5 active_threads=0 tvp=NULL
daemon: activity on 1 descriptor
daemon: activity on: 6r
daemon: read activity on 6
connection_get(6)
connection_get(6): got connid=0
connection_read(6): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
 0000:  30 3c 02 01 01 63 37 04                            0<...c7.
ldap_read: want=54, got=54
 0000:  17 6f 75 3d 50 65 6f 70  6c 65 2c 64 63 3d 6f 73   .ou=People,dc=os
 0010:  75 2c 64 63 3d 65 64 75  0a 01 00 0a 01 03 02 01   u,dc=edu........
 0020:  00 02 01 00 01 01 00 87  0b 6f 62 6a 65 63 74 43   .........objectC
 0030:  6c 61 73 73 30 00                                  lass0.
ber_get_next: tag 0x30 len 60 contents:
ber_dump: buf=0x10546c08 ptr=0x10546c08 end=0x10546c44 len=60
 0000:  02 01 01 63 37 04 17 6f  75 3d 50 65 6f 70 6c 65   ...c7..ou=People
 0010:  2c 64 63 3d 6f 73 75 2c  64 63 3d 65 64 75 0a 01   ,dc=osu,dc=edu..
 0020:  00 0a 01 03 02 01 00 02  01 00 01 01 00 87 0b 6f   ...............o
 0030:  62 6a 65 63 74 43 6c 61  73 73 30 00               bjectClass0.
ber_get_next
ldap_read: want=8 error=Resource temporarily unavailable
do_search
daemon: select: listen=5 active_threads=0 tvp=NULL
ber_scanf fmt ({miiiib) ber:
ber_dump: buf=0x10546c08 ptr=0x10546c0b end=0x10546c44 len=57
 0000:  63 37 04 17 6f 75 3d 50  65 6f 70 6c 65 2c 64 63   c7..ou=People,dc
 0010:  3d 6f 73 75 2c 64 63 3d  65 64 75 0a 01 00 0a 01   =osu,dc=edu.....
 0020:  03 02 01 00 02 01 00 01  01 00 87 0b 6f 62 6a 65   ............obje
 0030:  63 74 43 6c 61 73 73 30  00                        ctClass0.
dnPrettyNormal: <ou=People,dc=osu,dc=edu>
=> ldap_bv2dn(ou=People,dc=osu,dc=edu,0)
<= ldap_bv2dn(ou=People,dc=osu,dc=edu)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=People,dc=osu,dc=edu)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=people,dc=osu,dc=edu)=0
<<< dnPrettyNormal: <ou=People,dc=osu,dc=edu>, <ou=people,dc=osu,dc=edu>
SRCH "ou=People,dc=osu,dc=edu" 0 3 0 0 0
begin get_filter
PRESENT
ber_scanf fmt (m) ber:
ber_dump: buf=0x10546c08 ptr=0x10546c35 end=0x10546c44 len=15
0000: 87 0b 6f 62 6a 65 63 74 43 6c 61 73 73 30 00 ..objectClass0.
end get_filter 0
filter: (objectClass=*)
ber_scanf fmt ({M}}) ber:
ber_dump: buf=0x10546c08 ptr=0x10546c42 end=0x10546c44 len=2
0000: 00 00 ..
attrs:
conn=0 op=0 SRCH base="ou=People,dc=osu,dc=edu" scope=0 deref=3 filter="(objectClass=*)"
==> limits_get: conn=0 op=0 dn="[anonymous]"
[rw] searchDN: "ou=People,dc=osu,dc=edu" -> "ou=People,dc=osu,dc=edu"
[rw] searchFilter: "(objectClass=*)" -> "(objectClass=*)"
str2filter "(objectClass=*)"
put_filter: "(objectClass=*)"
put_filter: simple
put_simple_filter: "objectClass=*"
begin get_filter
PRESENT
ber_scanf fmt (m) ber:
ber_dump: buf=0x7fea023c ptr=0x7fea023c end=0x7fea0249 len=13
0000: 87 0b 6f 62 6a 65 63 74 43 6c 61 73 73 ..objectClass
end get_filter 0
ldap_create
ldap_url_parse_ext(ldap://the-server:389)
=>ldap_back_getconn: conn 0x1053e308 inserted refcnt=1 binding=1
ldap_search_ext
put_filter: "(objectClass=*)"
put_filter: simple
put_simple_filter: "objectClass=*"
ldap_build_search_req ATTRS: *
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP the-server:389
ldap_new_socket: 7
ldap_prepare_socket: 7
ldap_connect_to_host: Trying the-server:389
ldap_connect_timeout: fd: 7 tm: -1 async: 0
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_dump: buf=0x1053f280 ptr=0x1053f280 end=0x1053f2c0 len=64
0000: 30 3e 02 01 01 63 39 04 17 6f 75 3d 50 65 6f 70 0>...c9..ou=Peop
0010: 6c 65 2c 64 63 3d 6f 73 75 2c 64 63 3d 65 64 75 le,dc=osu,dc=edu
0020: 0a 01 00 0a 01 03 02 02 01 f4 02 02 0e 10 01 01 ................
0030: 00 87 0b 6f 62 6a 65 63 74 43 6c 61 73 73 30 00 ...objectClass0.
ber_scanf fmt ({) ber:
ber_dump: buf=0x1053f280 ptr=0x1053f285 end=0x1053f2c0 len=59
0000: 63 39 04 17 6f 75 3d 50 65 6f 70 6c 65 2c 64 63 c9..ou=People,dc
0010: 3d 6f 73 75 2c 64 63 3d 65 64 75 0a 01 00 0a 01 =osu,dc=edu.....
0020: 03 02 02 01 f4 02 02 0e 10 01 01 00 87 0b 6f 62 ..............ob
0030: 6a 65 63 74 43 6c 61 73 73 30 00 jectClass0.
ber_flush: 64 bytes to sd 7
0000: 30 3e 02 01 01 63 39 04 17 6f 75 3d 50 65 6f 70 0>...c9..ou=Peop
0010: 6c 65 2c 64 63 3d 6f 73 75 2c 64 63 3d 65 64 75 le,dc=osu,dc=edu
0020: 0a 01 00 0a 01 03 02 02 01 f4 02 02 0e 10 01 01 ................
0030: 00 87 0b 6f 62 6a 65 63 74 43 6c 61 73 73 30 00 ...objectClass0.
ldap_write: want=64, written=64
0000: 30 3e 02 01 01 63 39 04 17 6f 75 3d 50 65 6f 70 0>...c9..ou=Peop
0010: 6c 65 2c 64 63 3d 6f 73 75 2c 64 63 3d 65 64 75 le,dc=osu,dc=edu
0020: 0a 01 00 0a 01 03 02 02 01 f4 02 02 0e 10 01 01 ................
0030: 00 87 0b 6f 62 6a 65 63 74 43 6c 61 73 73 30 00 ...objectClass0.
ldap_result ld 0x1053e080 msgid 1
ldap_chkResponseList ld 0x1053e080 msgid 1 all 0
ldap_chkResponseList returns ld 0x1053e080 NULL
wait4msg ld 0x1053e080 msgid 1 (timeout 100000 usec)
wait4msg continue ld 0x1053e080 msgid 1 all 0
** ld 0x1053e080 Connections:
* host: the-server port: 389 (default)
refcnt: 2 status: Connected
last used: Thu Jul 12 13:36:34 2007


** ld 0x1053e080 Outstanding Requests:
* msgid 1,  origid 1, status InProgress
  outstanding referrals 0, parent count 0
** ld 0x1053e080 Response Queue:
  Empty
ldap_chkResponseList ld 0x1053e080 msgid 1 all 0
ldap_chkResponseList returns ld 0x1053e080 NULL
ldap_int_select
read1msg: ld 0x1053e080 msgid 1 all 0
ber_get_next
ldap_read: want=8, got=8
 0000:  30 5a 02 01 01 64 55 04                            0Z...dU.
ldap_read: want=84, got=84
 0000:  17 6f 75 3d 50 65 6f 70  6c 65 2c 64 63 3d 6f 73   .ou=People,dc=os
 0010:  75 2c 64 63 3d 65 64 75  30 3a 30 0e 04 02 6f 75   u,dc=edu0:0...ou
 0020:  31 08 04 06 50 65 6f 70  6c 65 30 28 04 0b 6f 62   1...People0(..ob
 0030:  6a 65 63 74 43 6c 61 73  73 31 19 04 03 74 6f 70   jectClass1...top
 0040:  04 12 6f 72 67 61 6e 69  7a 61 74 69 6f 6e 61 6c   ..organizational
 0050:  75 6e 69 74                                        unit
ber_get_next: tag 0x30 len 90 contents:
ber_dump: buf=0x1053e150 ptr=0x1053e150 end=0x1053e1aa len=90
 0000:  02 01 01 64 55 04 17 6f  75 3d 50 65 6f 70 6c 65   ...dU..ou=People
 0010:  2c 64 63 3d 6f 73 75 2c  64 63 3d 65 64 75 30 3a   ,dc=osu,dc=edu0:
 0020:  30 0e 04 02 6f 75 31 08  04 06 50 65 6f 70 6c 65   0...ou1...People
 0030:  30 28 04 0b 6f 62 6a 65  63 74 43 6c 61 73 73 31   0(..objectClass1
 0040:  19 04 03 74 6f 70 04 12  6f 72 67 61 6e 69 7a 61   ...top..organiza
 0050:  74 69 6f 6e 61 6c 75 6e  69 74                     tionalunit
read1msg: ld 0x1053e080 msgid 1 message type search-entry
ber_scanf fmt ({m{) ber:
ber_dump: buf=0x1053e150 ptr=0x1053e153 end=0x1053e1aa len=87
 0000:  64 55 04 17 6f 75 3d 50  65 6f 70 6c 65 2c 64 63   dU..ou=People,dc
 0010:  3d 6f 73 75 2c 64 63 3d  65 64 75 30 3a 30 0e 04   =osu,dc=edu0:0..
 0020:  02 6f 75 31 08 04 06 50  65 6f 70 6c 65 30 28 04   .ou1...People0(.
 0030:  0b 6f 62 6a 65 63 74 43  6c 61 73 73 31 19 04 03   .objectClass1...
 0040:  74 6f 70 04 12 6f 72 67  61 6e 69 7a 61 74 69 6f   top..organizatio
 0050:  6e 61 6c 75 6e 69 74                               nalunit
dnPrettyNormal: <ou=People,dc=osu,dc=edu>
=> ldap_bv2dn(ou=People,dc=osu,dc=edu,0)
<= ldap_bv2dn(ou=People,dc=osu,dc=edu)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=People,dc=osu,dc=edu)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=people,dc=osu,dc=edu)=0
<<< dnPrettyNormal: <ou=People,dc=osu,dc=edu>, <ou=people,dc=osu,dc=edu>
ber_scanf fmt ({m) ber:
ber_dump: buf=0x1053e150 ptr=0x1053e170 end=0x1053e1aa len=58
 0000:  30 0e 04 02 6f 75 31 08  04 06 50 65 6f 70 6c 65   0...ou1...People
 0010:  30 28 04 0b 6f 62 6a 65  63 74 43 6c 61 73 73 31   0(..objectClass1
 0020:  19 04 03 74 6f 70 04 12  6f 72 67 61 6e 69 7a 61   ...top..organiza
 0030:  74 69 6f 6e 61 6c 75 6e  69 74                     tionalunit
ber_scanf fmt ([W]) ber:
ber_dump: buf=0x1053e150 ptr=0x1053e176 end=0x1053e1aa len=52
 0000:  00 08 04 06 50 65 6f 70  6c 65 30 28 04 0b 6f 62   ....People0(..ob
 0010:  6a 65 63 74 43 6c 61 73  73 31 19 04 03 74 6f 70   jectClass1...top
 0020:  04 12 6f 72 67 61 6e 69  7a 61 74 69 6f 6e 61 6c   ..organizational
 0030:  75 6e 69 74                                        unit
ber_scanf fmt ({m) ber:
ber_dump: buf=0x1053e150 ptr=0x1053e180 end=0x1053e1aa len=42
 0000:  30 28 04 0b 6f 62 6a 65  63 74 43 6c 61 73 73 31   0(..objectClass1
 0010:  19 04 03 74 6f 70 04 12  6f 72 67 61 6e 69 7a 61   ...top..organiza
 0020:  74 69 6f 6e 61 6c 75 6e  69 74                     tionalunit
ber_scanf fmt ([W]) ber:
ber_dump: buf=0x1053e150 ptr=0x1053e18f end=0x1053e1aa len=27
 0000:  00 19 04 03 74 6f 70 04  12 6f 72 67 61 6e 69 7a   ....top..organiz
 0010:  61 74 69 6f 6e 61 6c 75  6e 69 74                  ationalunit
ber_scanf fmt ({m) ber:
ber_dump: buf=0x1053e150 ptr=0x1053e1aa end=0x1053e1aa len=0

[rw] searchEntryDN: "ou=People,dc=osu,dc=edu" -> "ou=People,dc=osu,dc=edu"
=> send_search_entry: conn 0 dn="ou=People,dc=osu,dc=edu"
=> access_allowed: read access to "ou=People,dc=osu,dc=edu" "entry" requested
=> acl_get: [1] attr entry
=> acl_mask: access to entry "ou=People,dc=osu,dc=edu", attr "entry" requested
=> acl_mask: to all values by "", (=0)
<= check a_dn_pat: *
<= acl_mask: [1] applying read(=rscxd) (stop)
<= acl_mask: [1] mask: read(=rscxd)
=> access_allowed: read access granted by read(=rscxd)
=> access_allowed: read access to "ou=People,dc=osu,dc=edu" "ou" requested
=> acl_get: [1] attr ou
access_allowed: no res from state (ou)
=> acl_mask: access to entry "ou=People,dc=osu,dc=edu", attr "ou" requested
=> acl_mask: to value by "", (=0)
<= check a_dn_pat: *
<= acl_mask: [1] applying read(=rscxd) (stop)
<= acl_mask: [1] mask: read(=rscxd)
=> access_allowed: read access granted by read(=rscxd)
=> access_allowed: read access to "ou=People,dc=osu,dc=edu" "objectClass" requested
=> acl_get: [1] attr objectClass
access_allowed: no res from state (objectClass)
=> acl_mask: access to entry "ou=People,dc=osu,dc=edu", attr "objectClass" requested
=> acl_mask: to value by "", (=0)
<= check a_dn_pat: *
<= acl_mask: [1] applying read(=rscxd) (stop)
<= acl_mask: [1] mask: read(=rscxd)
=> access_allowed: read access granted by read(=rscxd)
ber_flush: 92 bytes to sd 6
0000: 30 5a 02 01 01 64 55 04 17 6f 75 3d 50 65 6f 70 0Z...dU..ou=Peop
0010: 6c 65 2c 64 63 3d 6f 73 75 2c 64 63 3d 65 64 75 le,dc=osu,dc=edu
0020: 30 3a 30 0e 04 02 6f 75 31 08 04 06 50 65 6f 70 0:0...ou1...Peop
0030: 6c 65 30 28 04 0b 6f 62 6a 65 63 74 43 6c 61 73 le0(..objectClas
0040: 73 31 19 04 03 74 6f 70 04 12 6f 72 67 61 6e 69 s1...top..organi
0050: 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 zationalUnit
ldap_write: want=92, written=92
0000: 30 5a 02 01 01 64 55 04 17 6f 75 3d 50 65 6f 70 0Z...dU..ou=Peop
0010: 6c 65 2c 64 63 3d 6f 73 75 2c 64 63 3d 65 64 75 le,dc=osu,dc=edu
0020: 30 3a 30 0e 04 02 6f 75 31 08 04 06 50 65 6f 70 0:0...ou1...Peop
0030: 6c 65 30 28 04 0b 6f 62 6a 65 63 74 43 6c 61 73 le0(..objectClas
0040: 73 31 19 04 03 74 6f 70 04 12 6f 72 67 61 6e 69 s1...top..organi
0050: 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 zationalUnit
conn=0 op=0 ENTRY dn="ou=people,dc=osu,dc=edu"
<= send_search_entry: conn 0 exit.
ldap_msgfree
ldap_result ld 0x1053e080 msgid 1
ldap_chkResponseList ld 0x1053e080 msgid 1 all 0
ldap_chkResponseList returns ld 0x1053e080 NULL
wait4msg ld 0x1053e080 msgid 1 (timeout 100000 usec)
wait4msg continue ld 0x1053e080 msgid 1 all 0
** ld 0x1053e080 Connections:
* host: the-server port: 389 (default)
refcnt: 2 status: Connected
last used: Thu Jul 12 13:36:34 2007


** ld 0x1053e080 Outstanding Requests:
* msgid 1,  origid 1, status InProgress
  outstanding referrals 0, parent count 0
** ld 0x1053e080 Response Queue:
  Empty
ldap_chkResponseList ld 0x1053e080 msgid 1 all 0
ldap_chkResponseList returns ld 0x1053e080 NULL
ldap_int_select
read1msg: ld 0x1053e080 msgid 1 all 0
ber_get_next
ldap_read: want=8, got=8
 0000:  30 0c 02 01 01 65 07 0a                            0....e..
ldap_read: want=6, got=6
 0000:  01 00 04 00 04 00                                  ......
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x1053d978 ptr=0x1053d978 end=0x1053d984 len=12
 0000:  02 01 01 65 07 0a 01 00  04 00 04 00               ...e........
read1msg: ld 0x1053e080 msgid 1 message type search-result
ber_scanf fmt ({eaa) ber:
ber_dump: buf=0x1053d978 ptr=0x1053d97b end=0x1053d984 len=9
 0000:  65 07 0a 01 00 04 00 04  00                        e........
ber_scanf fmt ({eaa}) ber:
ber_dump: buf=0x1053d978 ptr=0x1053d97b end=0x1053d984 len=9
 0000:  65 07 0a 01 00 04 00 04  00                        e........
new result:  res_errno: 0, res_error: <>, res_matched: <>
read1msg: ld 0x1053e080 0 new referrals
read1msg:  mark request completed, ld 0x1053e080 msgid 1
request done: ld 0x1053e080 msgid 1
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection 0 1
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x1053d978 ptr=0x1053d97b end=0x1053d984 len=9
 0000:  65 07 0a 01 00 04 00 04  00                        e........
ber_scanf fmt (}) ber:
ber_dump: buf=0x1053d978 ptr=0x1053d984 end=0x1053d984 len=0

ldap_msgfree
send_ldap_result: conn=0 op=0 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=1 tag=101 err=0
ber_flush: 14 bytes to sd 6
 0000:  30 0c 02 01 01 65 07 0a  01 00 04 00 04 00         0....e........
ldap_write: want=14, written=14
 0000:  30 0c 02 01 01 65 07 0a  01 00 04 00 04 00         0....e........
conn=0 op=0 SEARCH RESULT tag=101 err=0 nentries=1 text=
daemon: activity on 1 descriptor
daemon: activity on: 6r
daemon: read activity on 6
connection_get(6)
connection_get(6): got connid=0
connection_read(6): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
 0000:  30 61 02 01 02 63 5c 04                            0a...c\.
ldap_read: want=91, got=91
 0000:  17 6f 75 3d 50 65 6f 70  6c 65 2c 64 63 3d 6f 73   .ou=People,dc=os
 0010:  75 2c 64 63 3d 65 64 75  0a 01 02 0a 01 03 02 01   u,dc=edu........
 0020:  00 02 01 00 01 01 00 a0  2c a3 15 04 0b 6f 62 6a   ........,....obj
 0030:  65 63 74 63 6c 61 73 73  04 06 70 65 72 73 6f 6e   ectclass..person
 0040:  a3 13 04 03 75 69 64 04  0c 73 74 61 70 6c 65 74   ....uid..staplet
 0050:  6f 6e 2e 34 31 30 04 04  02 64 6e                  on.410...dn
ber_get_next: tag 0x30 len 97 contents:
ber_dump: buf=0x1053d948 ptr=0x1053d948 end=0x1053d9a9 len=97
 0000:  02 01 02 63 5c 04 17 6f  75 3d 50 65 6f 70 6c 65   ...c\..ou=People
 0010:  2c 64 63 3d 6f 73 75 2c  64 63 3d 65 64 75 0a 01   ,dc=osu,dc=edu..
 0020:  02 0a 01 03 02 01 00 02  01 00 01 01 00 a0 2c a3   ..............,.
 0030:  15 04 0b 6f 62 6a 65 63  74 63 6c 61 73 73 04 06   ...objectclass..
 0040:  70 65 72 73 6f 6e a3 13  04 03 75 69 64 04 0c 73   person....uid..s
 0050:  74 61 70 6c 65 74 6f 6e  2e 34 31 30 04 04 02 64   tapleton.410...d
 0060:  6e                                                 n
ber_get_next
do_search
ldap_read: want=8 error=Resource temporarily unavailable
ber_scanf fmt ({miiiib) ber:
daemon: select: listen=5 active_threads=0 tvp=NULL
ber_dump: buf=0x1053d948 ptr=0x1053d94b end=0x1053d9a9 len=94
 0000:  63 5c 04 17 6f 75 3d 50  65 6f 70 6c 65 2c 64 63   c\..ou=People,dc
 0010:  3d 6f 73 75 2c 64 63 3d  65 64 75 0a 01 02 0a 01   =osu,dc=edu.....
 0020:  03 02 01 00 02 01 00 01  01 00 a0 2c a3 15 04 0b   ...........,....
 0030:  6f 62 6a 65 63 74 63 6c  61 73 73 04 06 70 65 72   objectclass..per
 0040:  73 6f 6e a3 13 04 03 75  69 64 04 0c 73 74 61 70   son....uid..stap
 0050:  6c 65 74 6f 6e 2e 34 31  30 04 04 02 64 6e         leton.410...dn
dnPrettyNormal: <ou=People,dc=osu,dc=edu>
=> ldap_bv2dn(ou=People,dc=osu,dc=edu,0)
<= ldap_bv2dn(ou=People,dc=osu,dc=edu)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=People,dc=osu,dc=edu)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=people,dc=osu,dc=edu)=0
<<< dnPrettyNormal: <ou=People,dc=osu,dc=edu>, <ou=people,dc=osu,dc=edu>
SRCH "ou=People,dc=osu,dc=edu" 2 3 0 0 0
begin get_filter
AND
begin get_filter_list
begin get_filter
EQUALITY
ber_scanf fmt ({mm}) ber:
ber_dump: buf=0x1053d948 ptr=0x1053d977 end=0x1053d9a9 len=50
0000: a3 15 04 0b 6f 62 6a 65 63 74 63 6c 61 73 73 04 ....objectclass.
0010: 06 70 65 72 73 6f 6e a3 13 04 03 75 69 64 04 0c .person....uid..
0020: 73 74 61 70 6c 65 74 6f 6e 2e 34 31 30 04 04 02 stapleton.410...
0030: 64 6e dn
end get_filter 0
begin get_filter
EQUALITY
ber_scanf fmt ({mm}) ber:
ber_dump: buf=0x1053d948 ptr=0x1053d98e end=0x1053d9a9 len=27
0000: 00 13 04 03 75 69 64 04 0c 73 74 61 70 6c 65 74 ....uid..staplet
0010: 6f 6e 2e 34 31 30 04 04 02 64 6e on.410...dn
end get_filter 0
end get_filter_list
end get_filter 0
filter: (&(objectClass=person)(uid=stapleton.41))
ber_scanf fmt ({M}}) ber:
ber_dump: buf=0x1053d948 ptr=0x1053d9a3 end=0x1053d9a9 len=6
0000: 00 04 04 02 64 6e ....dn
attrs: dn
conn=0 op=1 SRCH base="ou=People,dc=osu,dc=edu" scope=2 deref=3 filter="(&(objectClass=person)(uid=stapleton.41))"
conn=0 op=1 SRCH attr=dn
==> limits_get: conn=0 op=1 dn="[anonymous]"
[rw] searchDN: "ou=People,dc=osu,dc=edu" -> "ou=People,dc=osu,dc=edu"
[rw] searchFilter: "(&(objectClass=person)(uid=stapleton.41))" -> "(&(objectClass=person)(uid=stapleton.41))"
str2filter "(&(objectClass=person)(uid=stapleton.41))"
put_filter: "(&(objectClass=person)(uid=stapleton.41))"
put_filter: AND
put_filter_list "(objectClass=person)(uid=stapleton.41)"
put_filter: "(objectClass=person)"
put_filter: simple
put_simple_filter: "objectClass=person"
put_filter: "(uid=stapleton.41)"
put_filter: simple
put_simple_filter: "uid=stapleton.41"
begin get_filter
AND
begin get_filter_list
begin get_filter
EQUALITY
ber_scanf fmt ({mm}) ber:
ber_dump: buf=0x7fea0384 ptr=0x7fea0386 end=0x7fea03b2 len=44
0000: a3 15 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 04 ....objectClass.
0010: 06 70 65 72 73 6f 6e a3 13 04 03 75 69 64 04 0c .person....uid..
0020: 73 74 61 70 6c 65 74 6f 6e 2e 34 31 stapleton.41
end get_filter 0
begin get_filter
EQUALITY
ber_scanf fmt ({mm}) ber:
ber_dump: buf=0x7fea0384 ptr=0x7fea039d end=0x7fea03b2 len=21
0000: 00 13 04 03 75 69 64 04 0c 73 74 61 70 6c 65 74 ....uid..staplet
0010: 6f 6e 2e 34 31 on.41
end get_filter 0
end get_filter_list
end get_filter 0
=>ldap_back_getconn: conn 0x1053e308 fetched refcnt=1 binding=1.
ldap_search_ext
put_filter: "(&(objectClass=person)(uid=stapleton.41))"
put_filter: AND
put_filter_list "(objectClass=person)(uid=stapleton.41)"
put_filter: "(objectClass=person)"
put_filter: simple
put_simple_filter: "objectClass=person"
put_filter: "(uid=stapleton.41)"
put_filter: simple
put_simple_filter: "uid=stapleton.41"
ldap_build_search_req ATTRS:
dn
ldap_send_initial_request
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_dump: buf=0x1053f280 ptr=0x1053f280 end=0x1053f2e5 len=101
0000: 30 63 02 01 02 63 5e 04 17 6f 75 3d 50 65 6f 70 0c...c^..ou=Peop
0010: 6c 65 2c 64 63 3d 6f 73 75 2c 64 63 3d 65 64 75 le,dc=osu,dc=edu
0020: 0a 01 02 0a 01 03 02 02 01 f4 02 02 0e 10 01 01 ................
0030: 00 a0 2c a3 15 04 0b 6f 62 6a 65 63 74 43 6c 61 ..,....objectCla
0040: 73 73 04 06 70 65 72 73 6f 6e a3 13 04 03 75 69 ss..person....ui
0050: 64 04 0c 73 74 61 70 6c 65 74 6f 6e 2e 34 31 30 d..stapleton.410
0060: 04 04 02 64 6e ...dn
ber_scanf fmt ({) ber:
ber_dump: buf=0x1053f280 ptr=0x1053f285 end=0x1053f2e5 len=96
0000: 63 5e 04 17 6f 75 3d 50 65 6f 70 6c 65 2c 64 63 c^..ou=People,dc
0010: 3d 6f 73 75 2c 64 63 3d 65 64 75 0a 01 02 0a 01 =osu,dc=edu.....
0020: 03 02 02 01 f4 02 02 0e 10 01 01 00 a0 2c a3 15 .............,..
0030: 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 04 06 70 ..objectClass..p
0040: 65 72 73 6f 6e a3 13 04 03 75 69 64 04 0c 73 74 erson....uid..st
0050: 61 70 6c 65 74 6f 6e 2e 34 31 30 04 04 02 64 6e apleton.410...dn
ber_flush: 101 bytes to sd 7
0000: 30 63 02 01 02 63 5e 04 17 6f 75 3d 50 65 6f 70 0c...c^..ou=Peop
0010: 6c 65 2c 64 63 3d 6f 73 75 2c 64 63 3d 65 64 75 le,dc=osu,dc=edu
0020: 0a 01 02 0a 01 03 02 02 01 f4 02 02 0e 10 01 01 ................
0030: 00 a0 2c a3 15 04 0b 6f 62 6a 65 63 74 43 6c 61 ..,....objectCla
0040: 73 73 04 06 70 65 72 73 6f 6e a3 13 04 03 75 69 ss..person....ui
0050: 64 04 0c 73 74 61 70 6c 65 74 6f 6e 2e 34 31 30 d..stapleton.410
0060: 04 04 02 64 6e ...dn
ldap_write: want=101, written=101
0000: 30 63 02 01 02 63 5e 04 17 6f 75 3d 50 65 6f 70 0c...c^..ou=Peop
0010: 6c 65 2c 64 63 3d 6f 73 75 2c 64 63 3d 65 64 75 le,dc=osu,dc=edu
0020: 0a 01 02 0a 01 03 02 02 01 f4 02 02 0e 10 01 01 ................
0030: 00 a0 2c a3 15 04 0b 6f 62 6a 65 63 74 43 6c 61 ..,....objectCla
0040: 73 73 04 06 70 65 72 73 6f 6e a3 13 04 03 75 69 ss..person....ui
0050: 64 04 0c 73 74 61 70 6c 65 74 6f 6e 2e 34 31 30 d..stapleton.410
0060: 04 04 02 64 6e ...dn
ldap_result ld 0x1053e080 msgid 2
ldap_chkResponseList ld 0x1053e080 msgid 2 all 0
ldap_chkResponseList returns ld 0x1053e080 NULL
wait4msg ld 0x1053e080 msgid 2 (timeout 100000 usec)
wait4msg continue ld 0x1053e080 msgid 2 all 0
** ld 0x1053e080 Connections:
* host: the-server port: 389 (default)
refcnt: 2 status: Connected
last used: Thu Jul 12 13:36:34 2007


** ld 0x1053e080 Outstanding Requests:
* msgid 2,  origid 2, status InProgress
  outstanding referrals 0, parent count 0
** ld 0x1053e080 Response Queue:
  Empty
ldap_chkResponseList ld 0x1053e080 msgid 2 all 0
ldap_chkResponseList returns ld 0x1053e080 NULL
ldap_int_select
read1msg: ld 0x1053e080 msgid 2 all 0
ber_get_next
ldap_read: want=8, got=8
 0000:  30 0c 02 01 02 65 07 0a                            0....e..
ldap_read: want=6, got=6
 0000:  01 00 04 00 04 00                                  ......
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x1053db48 ptr=0x1053db48 end=0x1053db54 len=12
 0000:  02 01 02 65 07 0a 01 00  04 00 04 00               ...e........
read1msg: ld 0x1053e080 msgid 2 message type search-result
ber_scanf fmt ({eaa) ber:
ber_dump: buf=0x1053db48 ptr=0x1053db4b end=0x1053db54 len=9
 0000:  65 07 0a 01 00 04 00 04  00                        e........
ber_scanf fmt ({eaa}) ber:
ber_dump: buf=0x1053db48 ptr=0x1053db4b end=0x1053db54 len=9
 0000:  65 07 0a 01 00 04 00 04  00                        e........
new result:  res_errno: 0, res_error: <>, res_matched: <>
read1msg: ld 0x1053e080 0 new referrals
read1msg:  mark request completed, ld 0x1053e080 msgid 2
request done: ld 0x1053e080 msgid 2
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)
ldap_free_connection 0 1
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x1053db48 ptr=0x1053db4b end=0x1053db54 len=9
 0000:  65 07 0a 01 00 04 00 04  00                        e........
ber_scanf fmt (}) ber:
ber_dump: buf=0x1053db48 ptr=0x1053db54 end=0x1053db54 len=0

ldap_msgfree
send_ldap_result: conn=0 op=1 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=2 tag=101 err=0
ber_flush: 14 bytes to sd 6
 0000:  30 0c 02 01 02 65 07 0a  01 00 04 00 04 00         0....e........
ldap_write: want=14, written=14
 0000:  30 0c 02 01 02 65 07 0a  01 00 04 00 04 00         0....e........
conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
daemon: shutdown requested and initiated.
daemon: closing 5
connection_closing: readying conn=0 sd=6 for close
connection_close: conn=0 sd=6
=>ldap_back_conn_destroy: fetching conn 0
daemon: removing 6
conn=0 fd=6 closed (slapd shutdown)
slapd shutdown: waiting for 0 threads to terminate
slapd shutdown: initiated
slapd destroy: freeing system resources.
ldap_free_connection 1 1
ldap_send_unbind
ber_flush: 7 bytes to sd 7
 0000:  30 05 02 01 03 42 00                               0....B.
ldap_write: want=7, written=7
 0000:  30 05 02 01 03 42 00                               0....B.
ldap_free_connection: actually freed
slapd stopped.