Link to home
Start Free TrialLog in
Avatar of ghgan
ghgan

asked on

use perl to get window NT or exchange server user information.

Is there any way for perl to get the user information from
a winnt web server which is use for intranet or as a exchange server. The reason being, I can get the user id if a user log into the intranet and access a perl page by using the perl environment variable function. However, I want to get information such as the user full name and email address that is store either in the exchange server or the intranet server. Is there a way perl can retrieve this information?
Avatar of bebonham
bebonham

since you now know how to call external commands, why don't you call the SET command -- I think it contains that stuff.


Bob

ps Works on my windows 95 running novell

ghgan,

".. Is there a way perl can retrieve this information?..."

let me explain what i understand from this so far.

a user visits your site and enters his/her username.

Based on that username you would like to get the other details about this user, like the first name, last name etc from the exchange server or your intranet server.

Let me if this is right.

Also can you explain in detail what you mean when you say "intranet server". Are the usernames stored in a system file or DB?? please provide more details.


Avatar of ghgan

ASKER

maneshr

that's correct. Basically, I get the user id by using
$ENV{'REMOTE_USER'} function.

As for the intranet server, we are using winnt generic user
management for our intranet and exchange server. I do not know what database winnt is using to store the user information.
ghgan,

".. we are using winnt generic user management for our intranet and exchange server...."

based on the inputs you have given, i dont see any method for your application to talk to these proprietary username profile databases.

a possible alternative would be to use LDAP and then connect to it to retrieve the user profile OR manuall create a profile.

Both these approaches are not easy to set-up and definately not attractive.

Hope that helps
Avatar of ghgan

ASKER

Hi Maneshr

Is it possible to use ADSI instead?
ghgan,


"..use ADSI instead? ."

are you referring to Active Directory stucture here??

if not, let me know more details on the same.
Avatar of ghgan

ASKER

hi maneshr

yes
ghgan,

i dont think that there are PERL modules, yet, to talk to MS-ADSI and get user info.

On the other hand LDAP is easily accessible using PERL modules.

Hope that helps.
ghgan,

Did you get the solution you were looking for??

What solution, if any, did you use??

pl. let us know.

NOTE: if you have found a solution on your own or if this question has become obsolete,  please delete it and free up your points.
ghgan,

Did you get the solution you were looking for??

What solution, if any, did you use??

Pl. let us know.

NOTE: if you have found a solution on your own or if this question has become obsolete,  please delete it and free up your points.
Avatar of ghgan

ASKER

How do u get LDAP to be installed in NT or WIN2k
ASKER CERTIFIED SOLUTION
Avatar of maneshr
maneshr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial