From: Abu @ T. D. C. <ab...@tr...> - 2002-01-29 04:16:28
|
well done! i can see distinguished name now with ldapbrowser (gq), so i create litle script and bom! tx. #!/usr/bin/perl -w use strict; use Net::LDAP; my $ldap=Net::LDAP->new('galaxy.xxx.com') or die "$@"; $ldap->bind; my $mesg=$ldap->search(base=>"o=pt. xxxx Motor", filter=> "(&(mail=$ARGV[0]) )" ); $mesg->code && die $mesg->error; foreach my $entry ($mesg->all_entries) { $entry->dump; } $ldap->unbind; ------------------------------------------------------------------------ dn:cn=entas,cn=Recipients,ou=Federal Group,o=pt. Federal Motor objectClass: organizationalPerson person Top rdn: entas cn: Entas Yudho L distinguishedName: cn=entas,cn=Recipients,ou=Federal Group,o=pt. Federal Motor rfc822Mailbox: entas.yudho@ mail: entas.yudho@ textEncodedORaddress: c=ID;a= ;p=a;o=PT ... Motor;s=yudo laksono;g=entas;i=ey; otherMailbox: smtp$ postalAddress: Jl. Yos Sudarso, Sunter I conferenceInformation: / Company: AHM department: IT - System Support givenName: Entas l: Jakarta uid: entas MAPI-Recipient: TRUE physicalDeliveryOfficeName: Sunter postalCode: sn: Yudho Laksono telephoneNumber: 1816 co: Indonesia Peter Marschall(pet...@ma...)@Sat, Jan 26, 2002 at 02:42:11PM +0100: > Hi, > > silly question: > Did you activate the LDAP protocol in the Exchange server ? > > Yours > Peter > > On Thursday 24 January 2002 03:48, you wrote: > > -- > Peter Marschall | eMail: pet...@ma... > Scheffelstraße 15 | pet...@is... > 97072 Würzburg | Tel: 0931/14721 > PGP: D7 FF 20 FE E6 6B 31 74 D1 10 88 E0 3C FE 28 35 -- __ (oo) Open Solution Provider visit http://www.trabas.com / \/ \ GnuPg public information pub 1024/EBD26280 `V__V' A9A9 8F57 9E9D 14E3 05B4 3EDB C241 A313 EBD2 6280 You will always have good luck in your personal affairs. |