473,405 Members | 2,415 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,405 software developers and data experts.

User Profiles and ASP 2.0

Hello!

I have to create ASP.NET 2.0 role-based portal with following restrictions:
1. MembershipUsers must be stored in Active Directory
2. Role Membership stored in standard ASP 2.0 SQL database
3. Also there is own SQL Server database with table tblPersons, which users
must correlate with ASP users by field PersonID.
4. Some external programs will work with users records, so I must provide
some user management API.
5. We must have possibilities of two way search - search users by their AD
name or by PersonID.
6. Some of portal users may not have Person records associated with them
(depend on role)

First version implement this by adding PersonID in AD user record and
working with this records directly through LDAP. But this is very unsafe and
complex.

So, this is a question:
Have Microsoft some techniques to perform such mappings (for example on
providers level)?
Is there any other recommendations?

And the last question. For example we have Administrator role who like to
edit some user information stored in ASP user profile. How this role could
access other users profiles?

Thanks in advance,
Alex
Nov 19 '05 #1
3 1379
> So, this is a question:
Have Microsoft some techniques to perform such mappings (for example
on
providers level)?
Is there any other recommendations?
That's why the providers are designed the way they are -- it allows for independant
storage of those various bits of data you need, abstracting it behind a provider
API. Sounds like you're going to want the ADMembershipProvider and the SqlServerRoleProvider
for the storage of those two things.
And the last question. For example we have Administrator role who like
to edit some user information stored in ASP user profile. How this
role could access other users profiles?


You can load the Profile of another user by calling Profile.GetProfile("Username").
Check on your page via User.IsInRole("Admin") to see if the user is allowed
to do so.

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #2
Thanks!
I feel that it could be done this way, but I couldn't found APIs, samples
and guides to create own providers.
Could you recommend me any recources?

Regards,
Alex

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:10***********************@msnews.microsoft.co m...
So, this is a question:
Have Microsoft some techniques to perform such mappings (for example
on
providers level)?
Is there any other recommendations?


That's why the providers are designed the way they are -- it allows for
independant storage of those various bits of data you need, abstracting it
behind a provider API. Sounds like you're going to want the
ADMembershipProvider and the SqlServerRoleProvider for the storage of
those two things.
And the last question. For example we have Administrator role who like
to edit some user information stored in ASP user profile. How this
role could access other users profiles?


You can load the Profile of another user by calling
Profile.GetProfile("Username"). Check on your page via
User.IsInRole("Admin") to see if the user is allowed to do so.

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #3
The ASP.NET 2.0 Quickstarts:

http://beta.asp.net/QUICKSTART/aspnet/default.aspx

-Brock
DevelopMentor
http://staff.develop.com/ballen
Thanks!
I feel that it could be done this way, but I couldn't found APIs,
samples
and guides to create own providers.
Could you recommend me any recources?
Regards,
Alex
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:10***********************@msnews.microsoft.co m...
So, this is a question:
Have Microsoft some techniques to perform such mappings (for example
on
providers level)?
Is there any other recommendations?

That's why the providers are designed the way they are -- it allows
for independant storage of those various bits of data you need,
abstracting it behind a provider API. Sounds like you're going to
want the ADMembershipProvider and the SqlServerRoleProvider for the
storage of those two things.
And the last question. For example we have Administrator role who
like to edit some user information stored in ASP user profile. How
this role could access other users profiles?

You can load the Profile of another user by calling
Profile.GetProfile("Username"). Check on your page via
User.IsInRole("Admin") to see if the user is allowed to do so.

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #4

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

Similar topics

3
by: Test Test | last post by:
Hi, group! Here is some interesting problem: Our company has developed a large VB6 application that runs very smoothly on most environments. However, all of a sudden one of our customers...
0
by: Wayne Gibson | last post by:
Hi all, Please ignore the other post.. The cat jumped on the machine and sent it before I could stop it!! Was wondering if anybody has expericence this problem.. I am writting an application...
9
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
20
by: Keith G. Murphy | last post by:
I'm trying to get a feel for what most people are doing or consider best practice. Given a mod_perl application talking to a PostgreSQL database on the same host, where different users are...
1
by: Anurag | last post by:
Hi, I have 2 related questions. DB2 UDB ESE v8.x (8.1 till 8.2 FP2 - all fixpaks included) on AIX 5.4.x _____________________________________________________________________________ (QUESTION 1)...
2
by: Paul Lemke | last post by:
Hello, I currently have an application that uses authenticates users via NTLM. I would like to provide a user a directory listing of a folder. Everyone has read access to the folder, but the only...
9
by: =?Utf-8?B?Sm9obiBBdXN0aW4=?= | last post by:
I have an app that prints entry tickets. If the printer driver is not set up exactly to detect the black mark on the back of the ticket, the tickets do not print correctly. Because of this, all...
3
by: garyvale | last post by:
Hi, I am experiencing a recurrent bug with my secondary user profiles. I am using WIN XP Pro with SP2 and all current critical upgrades/patches. I am able to create secondary and tertiary...
6
by: goraya | last post by:
This is design level discussion about web applications. How I design application that support 1 million concurrent requests??
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.