Re: ActiveDirectoryMembershipProvider



on our Active Directory the username is not in the form of
usename@xxxxxxxxxxxxx
Our usernames are in the form of FirstName.LastName only.

and I have tried it, because I am desperate now,
firstname.lastname@xxxxxxxxxxxxx and it does not work.
I have tried many combinations.

Does the user name have to be in the form of username@xxxxxxxxxxxxx ??? I
don't think so.
Does LDAP require that???

So I am completely stuck.

How do I get some tools that can tell me what to do or how to test.

Thanks again,

SA




"Glenn Eastlack" <glenn@xxxxxxxxxxx> wrote in message
news:eYljiLneGHA.3588@xxxxxxxxxxxxxxxxxxxxxxx
What are you entering for the username? It has to be in the form
'<username>@<domain>' In my case, I have to enter
glenn@xxxxxxxxxxxxxxxxxxx

Thanks,
Glenn


MSDN wrote:
Glenn,

I have no errors or exceptions in my code but I keep on getting false in
my if statement when I try to validate the username and password.

So the Membership object is created with no problem.

if (Membership.ValidateUser(Login1.UserName, Login1.Password))

Do you know what I should look for??

Thanks for any help you can give me.

Sa


"Glenn Eastlack" <glenn@xxxxxxxxxxx> wrote in message
news:u$jI$pheGHA.5040@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for your help. It turns out that I misspelled the base DN in the
connection string (I actually changed the name to hide my client).

My connection string now looks like this:
<add name="ADConnectionString"
connectionString="LDAP://192.168.32.129/DC=testdns,DC=client,DC=com"; />

and my Providers look like this:

<add name="MembershipADProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"
connectionUsername="administrator@xxxxxxxxxxxxxxxxxx"
connectionPassword="password"
/>

I've now moved on to trying to create my own custom Provider and
MembershipUser. The question I have is when and how does the
MembershipUser get created and can you override how it gets created? In
particular, I have several attributes held in a SQL Server database that
I want to value.

Thanks,
Glenn

Juan T. Llibre wrote:
re:
Can anyone point me in the right direction to what
the error "A referral was returned from the server" means?
Does your dc=test, dc=com actually exist ?
Does testdns.test.com\administrator exist ?

See :
http://www.computerperformance.co.uk/Logon/Logon_CSVDE_Errors.htm#A_referral_was_returned_from_the_server.
http://www.computerperformance.co.uk/Logon/code/code_8007202B.htm




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Glenn Eastlack" <glenn@xxxxxxxxxxx> wrote in message
news:OlgFr1aeGHA.2068@xxxxxxxxxxxxxxxxxxxxxxx
I have been trying to use ASP.NET 2.0 built-in Membership Providers.
Particularly the ActiveDirectoryMembershipProvider.

My web.config looks like this:
<connectionStrings>
<clear/>
<add name="ADConnectionString"
connectionString="LDAP://192.168.32.129/CN=users,CN=testdns,DC=test,DC=com";
/>
</connectionStrings>

<membership defaultProvider="MembershipADProvider">
<providers>
<add name="MembershipADProvider"

type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"

connectionUsername="testdns.test.com\administrator"
connectionPassword="password"/>
</providers>
</membership>


Active Directory is running on a Windows 2003 server within a VMWare
instance.

When I run the app and try to log in using the asp:Login control, I
receive the following error:

A referral was returned from the server

<providers>
Line 64: <add name="MembershipADProvider"
Line 65:
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Line 66: connectionStringName="ADConnectionString"

Line 67: connectionUsername="administrator@xxxxxxxxxxxxxxxx"


Source File: C:\www\etlap-01.wur.ecri.org\html\web.config Line: 65

I can connection to AD just fine using the LDAPBrowser and the ADAM
adsiedit utility. Can anyone point me in the right direction to what
the error "A referral was returned from the server" means?

Much appreciated,
Glenn



.



Relevant Pages

  • Re: srai@steiner.edu
    ... Try prefixing the username with the domain name: ... "Sharad Rai" wrote in message ... > We are using one Windows 2003 server with XP clients. ... > successfully integrated it into our Active Directory using ...
    (microsoft.public.windows.server.networking)
  • Re: ActiveDirectoryMembershipProvider
    ... I have no errors or exceptions in my code but I keep on getting false in my if statement when I try to validate the username and password. ... connection string. ... and my Providers look like this: ... I have several attributes held in a SQL Server database that I want to value. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to change saved password
    ... It is a Windows 2000 server with active directory. ... typed in the username and password and told it to save. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Active Directory access-newbie
    ... I dont have access to the server. ... got a username and password, the code I am using right now is below. ... bruce barker wrote: ... I am a newbie to Active Directory. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Deleted Active directory. Not able to log on
    ... When I enter the username and password, ... I'm using correct admin id and password. ... Any way to copy the data from that server if not able to log on to ... When I deleted the Active directory, ...
    (microsoft.public.win2000.active_directory)