Hi all,

I'm working a little dilemma here. We have a Win2K Domain that is in mixed mode (it 
can server both NT and 2K machines). I have a userid (i.e. mydomain\username) and I'm 
trying to search the AD to get the full DN (CN=username,OU=Lan 
Team,DC=corp,DC=mydomain,DC=net). I've tried to user Win32::OLE, but it doesn't seem 
to search (I can't find documentation that shows how. I tried using PerLDAP with the 
following code:

use Mozilla::LDAP::Conn;
use Mozilla::LDAP::Utils;

    $base = "o=mydomain.net";
    $conn = new Mozilla::LDAP::Conn("corp", "389", "", ""); die "No LDAP  connection" 
unless $conn;
    $entry = $conn->search($base, "subtree", "(uid=e06764)");
    if (! $entry)
      { # handle this event, no entries found, dude!
      }
    else
      {
        while ($entry)
          {
            $entry->printLDIF();
            $entry = $conn->nextEntry();
          }
      }


Now, this example is straight out of the PerLDAP documentation. But, the 
Mozilla::LDAP::Conn doesn't seem to have been installed properly (despite attempts to 
re-install) and it looks like it may not even work, according to some docs on 
www.mozilla.org/directory/faq/perldap-faq.html . So again, in a nutshell, I have 
mydomain\username and I want to search corp.mydomain.net to get "CN=username,OU=Lan 
Team,DC=corp,DC=mydomain,DC=net"

Any help would be greatly appreciated.

-Henry

=��Z)��f�y��X��X�����h��`�)��lz��rدy+Z��(�:.�˛���m�m����+-����b��jל�o�j)fj��˛


Reply via email to