.NET Framework - ADSI

Asked By Chri
29-Nov-07 08:46 PM
Hi All,

I have question about Active Directory. We have developed a site it has 75K
users on SQL server 2005 associated with roles, now we are thinking to change
it to Active directory is it good idea or bad idea? if it is good  how to
migrate it.

Thanks in advance.

Chris
SQL Server
(1)
Active Directory
(1)
SharePoint
(1)
AspNetSqlMembershipProvider
(1)
MOSS 2007
(1)
ASP.NET
(1)
Exchange
(1)
Database
(1)
  Joe Kaplan replied...
29-Nov-07 10:52 PM
You haven't given us enough information about what you are doing to provide
you with a useful answer.  In terms of size, 75K users is not really
significant for AD from a size perspective.  I wouldn't worry about that.

Migration of users may be tricky, depending a great deal on how you have
stored the users' passwords in SQL and whether your intent is for your users
to have the same password they had before.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
  Chri replied...
30-Nov-07 10:24 AM
Joe ,

Thanks for quick respone.

We developed a site with public and privatre applications, for private
applications user need to login those users paswwords we dont want to
distrub, you are rite we want to use same passwords.

Any kind of possible other solutions also welcome( there is no time
constraint for development).

Regards,
Chris
  Joe Kaplan replied...
30-Nov-07 10:40 AM
Can you provide more details on how the passwords are stored in the SQL
database?  If they are in plaintext or encrypted in a reversible format,
then you should be able to recover them and use them provision identities in
AD or ADAM such that the users will have the same username and password they
used in SQL.

However, if they are in some sort of 1 way hash format, then it might be
very difficult to recover the plain text.  That would make provisioning in
AD very difficult.

Username format might be a bit of a problem as well, depending the formats
you allow in SQL.  You would want those to be compatible with AD.  ADAM
gives you a little more flexibility here.

I definitely recommend that you try to use the SQL and AD membership
providers for the integration with your web application.  They provide a
nice abstraction layer over the user store that makes it easier for your
application to not have to care where the users are stored.  If you aren't
using the membership providers now, I recommend that as your first step.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
  Chri replied...
30-Nov-07 11:08 AM
We are using username as firtsname.lastname  password as plaintext. could
you please provide me more information on using the SQL and AD membership
providers for the integration with web application, how to implement it.

aslo we want to use this AD for MOSS 2007, my question is do I need to have
exchanger server for this to implementation, we are using this for government
site.


Regards,
Chris
  Joe Kaplan replied...
30-Nov-07 01:51 PM
I'd suggest reading the patterns and practices guidance documentation on
using the ASP.NET membership provider framework.  There is a ton written on
this topic and you'll get better information by reading the existing
documentation than by asking such a broad question on the newsgroups.  The
newsgroups are much better for asking specific technical questions.  Google
will find the P&P docs very easily for you.

Since your passwords are stored in plain text, it should not be difficult to
provision matching users in AD.  You'll just need some sort of script to do
it.

You don't need Exchange unless you want to use Exchange to provision the AD
users with mailboxes or use Exchange for some other email routing feature.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
  Alexey Smirnov replied...
07-Dec-07 01:32 AM
Chris, from what was written above I see no clear case to migrate to
AD.

If you need it for integration with MOSS only, then I'm not sure if AD
will be the best way in that case. SharePoint imports users from AD to
the own SQL database, and it means AD will be as an intermediate-level
with AspNetSqlMembershipProvider to either the local or remote
instance of SQL Server.
Create New Account
help
Is Linq to SQL any good? .NET Framework I am a big fan of linq but in my opinion linq to sql is a complete waste of time. Why on earth take something that is already complex (sql) and make it more complex and difficult to write by creating a translation layer. I see people here struggling to write linq to sql queries. It also creates the problem of being locked into a particular product with regards as generally in newsgroups on those who disagree reply. :-) Thanks in advance, Michael C# Discussions SQL Server 6.5 (1) SQL Server (1) Windows Communication Foundation (1) MySQL (1) Entity Framework (1) Visual Studio (1) Silverlight (1
View timed out every now and then .NET Framework We are using SQL Server 2005 and VB.NET 2008. We have a view that is called by the application SELECT of 2 more views and a table. When I run the view on the SQL Server Management Studio, it runs for 2 seconds. Most of the time when the view is error "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.), even after I set the command time out to 45 seconds (which view runs fast most of the time, but very slow once or twice a day ? SQL Server machine has 8 processors of 2993 Mhz each and 32 MB of RAM. Right now the available physical memory there is 18.48 GB, and SQL Server is using 9-50% of CPU and 11, 358, 080K of RAM. It has
traders database. I run the CustomerData from visual studio 2005 using the build in Development Server so I use the File system. This works perfect To make it work from IIS I created a virtual directory that points the the physical path where my web site is located. Now to the aspx from the brower and it worked without having added any account for ASPNET in Sql server. As we all know it is acoount ASPNET that IIS is using when running aspx running under IIS because IIS is using ASPNET and there is no such account in Sql server. / / Tony ASP.NET Discussions SQL Server (1) ConfigurationManager.ConnectionStrings (1) Visual Studio (1) GridView1.DataSource (1) SqlDataAdapter (1) SqlDataSource (1) SqlConnection
Timeout expired. The timeout period elapsed prior to completion ofthe operation or the server is not responding. .NET Framework Our application is in VB.NET 2008 and our database is SQL Server 2005. Our application runs on Windows Server 2003 R2 Standard Edition SP 2. The database runs on Windows Server 2003 R2 Enterprise x64 Edition SP 1. The database server has many databases. The database connection string in the program uses a name instance, not error "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding." What would cause this error to show up every now and then myID;Password = myPwd;Max Pool Size = 200" .Open() End With Thank you VB.NET Discussions SQL Server 2005 (1) SQL Server 2000 (1) Windows Server 2003 R2 (1) SQL Server Books
Express Edition la cual usa como base de datos un archivo denominado "BaseDatos1.sdf", y SQL Server Compact 3.5 (esto significa que es una versión gratuita de Visual Studio 2008, no Data Source = | DataDirectory | \ BaseDatos1.sdf) He intentado cambiar el origen de datos establecido en: Microsoft SQL Server Compact 3.5 (Proveedor de datos .NET Framework para Microsoft SQL Server Compact 3.5) por este otro: Archivo de base de datos de Microsoft SQL Server (SqlClient) Pero al buscar la ruta donde se encuentra la base de datos, no me