473,386 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Get userID from Active Directory.

I first post this to win2000.active_directory group and I find out it may be
a wrong group.

I hope this group can help me.
Hello,

In ASP page, does any one knows how to get user network login ID from user
email address?

In my company, we use win 2000 server with active directory.

In my ASP page, when input an email address, I need search to find the user
network login ID.

How to do this?

Thanks for your help.

Lin Ma

Jul 19 '05 #1
7 27262
Is using Windows authentication on your site an option instead? If you
enable that, you will get DOMAIN\username in
REquest.ServerVariables("LOGON_USER").

Ray at work

"Lin Ma" <a@a.com> wrote in message
news:uO**************@TK2MSFTNGP11.phx.gbl...
I first post this to win2000.active_directory group and I find out it may be a wrong group.

I hope this group can help me.
Hello,

In ASP page, does any one knows how to get user network login ID from user
email address?

In my company, we use win 2000 server with active directory.

In my ASP page, when input an email address, I need search to find the user network login ID.

How to do this?

Thanks for your help.

Lin Ma

Jul 19 '05 #2
Ray,

Thanks for the response.

Unfortunately, the logon user is querying other user's network ID by their
email address. So the Request.ServerVariables("LOGON_USER") will not working
at this case.

Any other idea please?

Thanks,

Lin Ma
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Is using Windows authentication on your site an option instead? If you
enable that, you will get DOMAIN\username in
REquest.ServerVariables("LOGON_USER").

Ray at work

"Lin Ma" <a@a.com> wrote in message
news:uO**************@TK2MSFTNGP11.phx.gbl...
I first post this to win2000.active_directory group and I find out it may
be
a wrong group.

I hope this group can help me.
Hello,

In ASP page, does any one knows how to get user network login ID from

user email address?

In my company, we use win 2000 server with active directory.

In my ASP page, when input an email address, I need search to find the

user
network login ID.

How to do this?

Thanks for your help.

Lin Ma


Jul 19 '05 #3
Ah, I see.

If it were on my network, the person's username would simpy be:

sEmailAddress = "ra*@ourdomain.com"
aUsername = Split(sEmailAddress & "@", "@")
sUsername = aUsername(0)

Maybe you could create a MAPI session and use the resolve method. ?

Ray at work
"Lin Ma" <a@a.com> wrote in message
news:eK*************@tk2msftngp13.phx.gbl...
Ray,

Thanks for the response.

Unfortunately, the logon user is querying other user's network ID by their
email address. So the Request.ServerVariables("LOGON_USER") will not working at this case.

Any other idea please?

Thanks,

Lin Ma

Jul 19 '05 #4
Ray,

Thanks for this try. But the user ID is not formatted the same way because
we merged with other company.

we keep the same email format which is fi****************@mycompany.com

Like my user id is MAL (lastname and firstname initial), but my email is
li****@mycompany.com

Others use firstname.lastname as network logon ID.

And some other format.

Any other idea? thanks a lot for the help.

Lin Ma


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:en**************@TK2MSFTNGP10.phx.gbl...
Ah, I see.

If it were on my network, the person's username would simpy be:

sEmailAddress = "ra*@ourdomain.com"
aUsername = Split(sEmailAddress & "@", "@")
sUsername = aUsername(0)

Maybe you could create a MAPI session and use the resolve method. ?

Ray at work
"Lin Ma" <a@a.com> wrote in message
news:eK*************@tk2msftngp13.phx.gbl...
Ray,

Thanks for the response.

Unfortunately, the logon user is querying other user's network ID by their email address. So the Request.ServerVariables("LOGON_USER") will not

working
at this case.

Any other idea please?

Thanks,

Lin Ma


Jul 19 '05 #5
Perhaps asking in m.p.active.directory.interfaces would yield better
responses. I wouldn't mention that you want to do this in ASP. Just ask
how to do it in VBS or JS or any language for that matter.

Ray at work

"Lin Ma" <a@a.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
Ray,

Thanks for this try. But the user ID is not formatted the same way because
we merged with other company.

we keep the same email format which is fi****************@mycompany.com

Like my user id is MAL (lastname and firstname initial), but my email is
li****@mycompany.com

Others use firstname.lastname as network logon ID.

And some other format.

Any other idea? thanks a lot for the help.

Lin Ma


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:en**************@TK2MSFTNGP10.phx.gbl...
Ah, I see.

If it were on my network, the person's username would simpy be:

sEmailAddress = "ra*@ourdomain.com"
aUsername = Split(sEmailAddress & "@", "@")
sUsername = aUsername(0)

Maybe you could create a MAPI session and use the resolve method. ?

Ray at work
"Lin Ma" <a@a.com> wrote in message
news:eK*************@tk2msftngp13.phx.gbl...
Ray,

Thanks for the response.

Unfortunately, the logon user is querying other user's network ID by their email address. So the Request.ServerVariables("LOGON_USER") will not

working
at this case.

Any other idea please?

Thanks,

Lin Ma



Jul 19 '05 #6
Ray,

Thanks for the tries and the direction.

I will post a question in that group.

Have a blessing day.

Lin Ma
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Perhaps asking in m.p.active.directory.interfaces would yield better
responses. I wouldn't mention that you want to do this in ASP. Just ask
how to do it in VBS or JS or any language for that matter.

Ray at work

"Lin Ma" <a@a.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
Ray,

Thanks for this try. But the user ID is not formatted the same way because we merged with other company.

we keep the same email format which is fi****************@mycompany.com

Like my user id is MAL (lastname and firstname initial), but my email is
li****@mycompany.com

Others use firstname.lastname as network logon ID.

And some other format.

Any other idea? thanks a lot for the help.

Lin Ma


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:en**************@TK2MSFTNGP10.phx.gbl...
Ah, I see.

If it were on my network, the person's username would simpy be:

sEmailAddress = "ra*@ourdomain.com"
aUsername = Split(sEmailAddress & "@", "@")
sUsername = aUsername(0)

Maybe you could create a MAPI session and use the resolve method. ?

Ray at work
"Lin Ma" <a@a.com> wrote in message
news:eK*************@tk2msftngp13.phx.gbl...
> Ray,
>
> Thanks for the response.
>
> Unfortunately, the logon user is querying other user's network ID by

their
> email address. So the Request.ServerVariables("LOGON_USER") will not
working
> at this case.
>
> Any other idea please?
>
> Thanks,
>
> Lin Ma



Jul 19 '05 #7
Hi Lin,

I think you may perform some LDAP query in your ASP page to check the user
account. You may refer to following articles on this:

HOW TO: Use ADSI to Access Exchange User Data from an ASP Page
http://support.microsoft.com/default...B;EN-US;253568

HOWTO: Find Mail/Mailbox-Enabled Users in the Active Directory
http://support.microsoft.com/default...B;EN-US;252650

Hope this hlepful,
Luke
Microsoft Online Partner Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I...
9
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service...
1
by: STeve | last post by:
Hi guys, In my active directory class I was wondering how I would be able to catch invalid UserID's entered by the user. For example say if the user entered in a UserID as a. (well any set of...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
6
by: Leo_Surf | last post by:
Hello, I need your help adding user in Active Directory from ASP.net website. Could any one provide me the complete code for the html page. As this is my curriculam project and I dont have any...
1
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
2
by: GDURAN | last post by:
How to get userid on Active Directory from VB?
2
by: willyd61 | last post by:
Hello Everyone! Newbie here... I can't configure any remote clients to connect to my DB2 server, I am able to run and connect local from the server, but if I try to connect with a user and...
1
by: chaitu | last post by:
Hi, I have an issue. When a developer tries to connect using an USERID and a ped it gives SQL30082N Attempt to establish connection failed with security reason "19" ("USERID DISABLED or...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.