Grand_Phallus has asked for the wisdom of the Perl Monks concerning the following question:

Hello All
I'm looking at revamping a print quota system and I'd like to incorporate some database functionality. In the interest of keeping user information consolidated, I'd like to use windows' active directory as a replacement for my current simple database. Our environment is heterogeneous with Win2000,Linux,Solaris,HP-UX,etc. My print server is a linux box. Is there a simple way to tie into active directory using perl (my current accounting scripts are in perl, I'd rather not re-write them entirely) and store accounting information there? I've seen the server-client middleware approach, but would enjoy seeing a way to tie directly into active directory seeing as how it's prety much an LDAP server.

Replies are listed 'Best First'.
Re: Active Directory
by sgifford (Prior) on Jul 01, 2003 at 21:47 UTC
    From what I understand, Active Directory is a modified LDAP server, so Net::LDAP might work.
      *Slaps forehead

      I'll definitely give that a shot.
      Thanks much.
Re: Active Directory
by BrowserUk (Patriarch) on Jul 01, 2003 at 21:28 UTC

    It's unclear to me from your question whether you are wanting to use Active Directory from Win2k boxes or from the Linux print server?

    From the Win2k box, this ActiveDirectory.pm described here should help.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


      I'm looking to connect from the linux box. It's connecting from a remote non-windows platform that is stumping me.