Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationPopulating other fields from AD at Account CreationPopulating other fields from AD at Account Creation
Previous
 
Next
New Post
4/5/2006 7:53 AM
 

Hi,

I've got a requirement to populate User Profiles with additional data.  For example the Organisation Tab shows a value for Department.  I note that the web.config includes a <properties> section under <profile>.  Is it simply a case of editing the fields in this section of the web.config (surely it can't be THAT easy ?).

The values from this list then appear in the PropertyNames field of the aspnet_Profile table, however the data does not appear in the PropertyValuesString field.

Do I need to edit the part of the core which populates this data ? (and where is it ?)

Would I then need to edit the core Profile page to enable it to display the new fields ?

I've used Department in my example, but I'm fairly certain they're going to want a photo in there too at some point.  Will the addition of a binary datatype field cause additional complications ?

I note the PropertyValuesBinary field in the aspnet_Profiles table.  Is that likely to work the same way but just with the web.config entry for the field as Type="Binary" ?

Any light you can shed on this would be much appreciated

 
New Post
4/6/2006 6:04 AM
 

Ok, having lifted the lid on this can of worms it looks like edits will be required to:

ADSIProvider.vb - FillUserInfo (get the field values)

Authentication\UserInfo.vb - to store the new fields

Users\UserProfile.vb - to present the new fields

and either

Controls\Address.ascx - to display new fields

OR

a new control ExtendedInfo.ascx - to display new fields

and an edit of admin\users\manageusers.ascx to include ExtendedInfo.ascx

This however will result in a DNN install which is very much hardcoded to my specific network/domain.  I can't help feeling there's a missed opportunity here to make this more dynamic and have the AD fields and UserProfile configurable to map to each other.  

Anyone know if there is a feature of aspnet membership that I'm missing and could make use of to make this more maintainable/dynamic/reusable ?

Or if there is a way to make better use of the <Profile><Properties> section of web.config with regard to AD and/or Profiles ?

 

 
New Post
7/11/2006 11:19 AM
 

I think that would be usefull, if there is please let me know too.

I updated (added to) adduser sp :

If @Displayname = ''
BEGIN
   select @Displayname = @FirstName + ' ' + @LastName
END

The reason I added this was when domain user's are added, their displayname was blank and they could not click to thier profile, or see they where logged on.

Is there a better way to do this, without core hacks?

-J

 
New Post
9/12/2006 11:27 AM
 

You guys could always compile your changes and include your source and release it to the community that way people have a choice rather or not they want to use it or if they want to change it.

 

Stuart


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationPopulating other fields from AD at Account CreationPopulating other fields from AD at Account Creation


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out