473,854 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1420
> 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 ADMembershipPro vider and the SqlServerRolePr ovider
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.GetProf ile("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****@NOSPAMd evelop.com> wrote in message
news:10******** *************** @msnews.microso ft.com...
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
ADMembershipPro vider and the SqlServerRolePr ovider 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.GetProf ile("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****@NOSPAMd evelop.com> wrote in message
news:10******** *************** @msnews.microso ft.com...
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 ADMembershipPro vider and the SqlServerRolePr ovider 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.GetProf ile("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
3897
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 (unsing WinNT SP6) experienced a dramatic performance drop. We investigated, and it turned out that it depends on the
0
1822
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 in C# using windows forms, to create windows user profiles and then updating the registry information for the new profiles. I have managed to create the user successfully and thought that I was
9
6748
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
20
6652
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 logging onto the web server using LDAP for authentication, do most people 1) have the web server connecting to the database using its own user account (possibly through ident), and controlling access to different database entities strictly through...
1
4957
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) Output of "db2ilist" does not list all the instances on my AIX box. DB2 functions normally - I do not get any unexpected errors. Any ideas what configuration has been missed out?...
2
2859
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 folders that should show up are ones that allow them to modify sometime. I can list the directories/files just fine using directoryinfo/ fileinfo. But how can i tell if the current authenticated user has NTFS write/modify permissions on those...
9
2376
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 users are logging on with the same user name to ensure they get a correctly configured printer driver. The application runs on a Terminal Server via the RDP client. In order to audit the actions of users, it is necessary to identify each user....
3
2238
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 accounts (et al) with my primary administrator access. The users can successfully enter their profiles/workspace via the log-on process, however, when applications like MS WORD and EXPLORER are launched via desktop shortcuts, a windows installer screen pops...
6
4130
by: goraya | last post by:
This is design level discussion about web applications. How I design application that support 1 million concurrent requests??
0
9901
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9751
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11024
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10679
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10371
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9513
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5741
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5941
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4159
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.