Cannot create accounts

Sep 10, 2007 at 8:02 AM
I'm currently testing the hosting application, everything works fine but i cannot create users when logged on to the dashboard.
It says: Not Implemented.

I looked over the documentation and couldn't find anything about this.

Regards, Mark
Sep 13, 2007 at 2:40 PM
I don't think that's been implemented in the dashboard (those are just javascript popups). You can create users from the login page.

Regards,
Mike Sharp
Sep 13, 2007 at 3:50 PM
I know that users can be created from the login page, but my thought was that you could create users for the teamsites that where created.

Regards, Mark
Coordinator
Sep 17, 2007 at 10:46 PM
Hi Mark,

Yes, you can create users for the sites that have been created. if you go the Site Actions->site settings, you'll see a Create User link that will invoke a web part page.

regards,
Lisa
Sep 18, 2007 at 7:31 AM
Hi lisa,

I know i can create users via actions -> site settings
But that's not what i ment.
On the dashboard, where you've got a list of all your packages, on the left site it says biling information, create users...
That's the create users i'm talking about. :)

Reagards, Mark

lisataka wrote:
Hi Mark,

Yes, you can create users for the sites that have been created. if you go the Site Actions->site settings, you'll see a Create User link that will invoke a web part page.

regards,
Lisa

Coordinator
Sep 20, 2007 at 9:42 PM
Hi Mark,

Sorry, i misunderstood. Unfortunately, that functionality does not exist in this sample application. You could however, modify the application and add that capability. All the source code is available.

regards,
Lisa


mklifman wrote:
Hi lisa,

I know i can create users via actions -> site settings
But that's not what i ment.
On the dashboard, where you've got a list of all your packages, on the left site it says biling information, create users...
That's the create users i'm talking about. :)

Reagards, Mark

lisataka wrote:
Hi Mark,

Yes, you can create users for the sites that have been created. if you go the Site Actions->site settings, you'll see a Create User link that will invoke a web part page.

regards,
Lisa


May 16, 2008 at 7:45 AM
I've implemented the hosting application with AD formbased authentication.
But when trying to create a new user (site settings) I receive allways following error: Site Property: OU does not exists.
I checked the AD and these OU are there. What could be he problem?
Password reset function is working. Could it be linked to my second question? Users are normally created in an OU Users group, but these groups are not visible in wss!

Another problem is that when I create a new group in wss and wants to populate it with AD users and groups, I can only detect the AD users, but the AD groups are not in the list (filtered out ?).
If I use AD with windows authentications the AD groups are selectable in wss.
Is there a special setting or is this normal and are the AD goups filtered out because of the formbased authentication?

May 16, 2008 at 7:45 AM
Edited May 30, 2008 at 11:47 AM
I've implemented the hosting application with AD formbased authentication.
But when trying to create a new user (site settings) I receive allways following error: Site Property: OU does not exists.
I checked the AD and these OU are there. What could be he problem?
Password reset function is working. Could it be linked to my second question? Users are normally created in an OU Users group, but these groups are not visible in wss!

Another problem is that when I create a new group in wss and wants to populate it with AD users and groups, I can only detect the AD users, but the AD groups are not in the list (filtered out ?).
If I use AD with windows authentications the AD groups are selectable in wss.
Is there a special setting or is this normal and are the AD goups filtered out because of the formbased authentication?

We have resolved the problem with the Site Property OU error. You must create for every site in wss a site property OU and fill it in repectivily with the OU name in AD. Each wss site has it's own property OU taht makes the link with the AD Organisational Unit OU.
So then it's working perfectely.


But I can still not see AD groups in wss? Any suggestion here?
May 29, 2008 at 8:12 PM
Edited May 29, 2008 at 8:13 PM
I am having the exact same problem as wds.

Any ideas, suggestions, resolution?

Could it be because the site and OU already existed before adding this solution?

Thanks.
May 30, 2008 at 11:48 AM
OU error problem is resolved see my entry

Callistus wrote:
I am having the exact same problem as wds.

Any ideas, suggestions, resolution?

Could it be because the site and OU already existed before adding this solution?

Thanks.


Jun 3, 2008 at 5:17 PM
Edited Jun 4, 2008 at 2:37 PM

wds,

Thanks for your response.
I must confess I am still lost!

Using the stsadm tool, I set and OU property = AD OU. Still receive the same error message.

stsadm -o setproperty -propertyname OU -propertyvalue [AD OU] -url [site url]

Thanks for your help,
Callistus


wds wrote:
OU error problem is resolved see my entry

Callistus wrote:
I am having the exact same problem as wds.

Any ideas, suggestions, resolution?

Could it be because the site and OU already existed before adding this solution?

Thanks.





Jun 5, 2008 at 4:46 PM

You can not make this siteproperties with stsadm. That's not possible. Because you can only make a property for all your sites and not per site.

We have done this with powershellscript.
But you can do this also with c# code.

$w.Properties["OU"] = "OU_Name"
$w.Properties["MyProp"] = 123
$w.Properties.Update()

Programming with Property Bag    By ben on 9/23/2006 4:22 PM
You can create and remove properties in a property bag programmatically, and you can modify the values assigned to properties. After updating a property in a property bag, you must invoke the Update() method so that the property value is persisted in the site database.

The following example shows code for adding a property to the property bag of an SPWeb object. The code also shows how to iterate through the property bag to retrieve key names and values.

Show All

Visual C# Code Example

// Obtain a reference to the current Web
SPWeb litwareWeb = SPControl.GetContextWeb(Context);
// Enable updates to be made to the SPWeb object
litwareWeb.AllowUnsafeUpdates = true;
// Add a property and update the property bag
litwareWeb.Properties.Add("Project Type1", "Development");
litwareWeb.Properties.Update();
// Disable updates for the SPWeb object
litwareWeb.AllowUnsafeUpdates = false;
// Iterate through the properties in the property bag
for each(System.Collections.DictionaryEntry webProperty
in litwareWeb.Properties)
{
this.Page.Response.Write(webProperty.Key.ToString()
+ " : "
+ webProperty.Value.ToString()
+ "
");
}

Visual Basic Code Example

' Obtain a reference to the current Web
Dim litwareWeb as SPWeb = SPControl.GetContextWeb(Context)
' Enable updates to be made to the SPWeb object
litwareWeb.AllowUnsafeUpdates = True
' Add a property and update the property bag
litwareWeb.Properties.Add("Project Type1", "Development")
litwareWeb.Properties.Update()
' Disable updates for the SPWeb object
litwareWeb.AllowUnsafeUpdates = False
' Iterate through the properties in the property bag
For Each(webProperty As System.Collections.DictionaryEntry _
In litwareWeb.Properties)
this.Page.Response.Write(webProperty.Key.ToString() _
+ " : " _
+ webProperty.Value.ToString() _
+ "
")
Next

Best regards


Callistus wrote:

wds,

Thanks for your response.
I must confess I am still lost!

Using the stsadm tool, I set and OU property = AD OU. Still receive the same error message.

stsadm -o setproperty -propertyname OU -propertyvalue [AD OU] -url [site url]

Thanks for your help,
Callistus


wds wrote:
OU error problem is resolved see my entry

Callistus wrote:
I am having the exact same problem as wds.

Any ideas, suggestions, resolution?

Could it be because the site and OU already existed before adding this solution?

Thanks.








Jun 5, 2008 at 4:46 PM

You can not make this siteproperties with stsadm. That's not possible. Because you can only make a property for all your sites and not per site.

We have done this with powershellscript.
But you can do this also with c# code.

$w.Properties["OU"] = "OU_Name"
$w.Properties["MyProp"] = 123
$w.Properties.Update()

Programming with Property Bag    By ben on 9/23/2006 4:22 PM
You can create and remove properties in a property bag programmatically, and you can modify the values assigned to properties. After updating a property in a property bag, you must invoke the Update() method so that the property value is persisted in the site database.

The following example shows code for adding a property to the property bag of an SPWeb object. The code also shows how to iterate through the property bag to retrieve key names and values.

Show All

Visual C# Code Example

// Obtain a reference to the current Web
SPWeb litwareWeb = SPControl.GetContextWeb(Context);
// Enable updates to be made to the SPWeb object
litwareWeb.AllowUnsafeUpdates = true;
// Add a property and update the property bag
litwareWeb.Properties.Add("Project Type1", "Development");
litwareWeb.Properties.Update();
// Disable updates for the SPWeb object
litwareWeb.AllowUnsafeUpdates = false;
// Iterate through the properties in the property bag
for each(System.Collections.DictionaryEntry webProperty
in litwareWeb.Properties)
{
this.Page.Response.Write(webProperty.Key.ToString()
+ " : "
+ webProperty.Value.ToString()
+ "
");
}

Visual Basic Code Example

' Obtain a reference to the current Web
Dim litwareWeb as SPWeb = SPControl.GetContextWeb(Context)
' Enable updates to be made to the SPWeb object
litwareWeb.AllowUnsafeUpdates = True
' Add a property and update the property bag
litwareWeb.Properties.Add("Project Type1", "Development")
litwareWeb.Properties.Update()
' Disable updates for the SPWeb object
litwareWeb.AllowUnsafeUpdates = False
' Iterate through the properties in the property bag
For Each(webProperty As System.Collections.DictionaryEntry _
In litwareWeb.Properties)
this.Page.Response.Write(webProperty.Key.ToString() _
+ " : " _
+ webProperty.Value.ToString() _
+ "
")
Next

Best regards


Callistus wrote:

wds,

Thanks for your response.
I must confess I am still lost!

Using the stsadm tool, I set and OU property = AD OU. Still receive the same error message.

stsadm -o setproperty -propertyname OU -propertyvalue [AD OU] -url [site url]

Thanks for your help,
Callistus


wds wrote:
OU error problem is resolved see my entry

Callistus wrote:
I am having the exact same problem as wds.

Any ideas, suggestions, resolution?

Could it be because the site and OU already existed before adding this solution?

Thanks.








Jul 2, 2008 at 4:04 PM
Adding an application project to the solution and making slight modifications to the Visual C# sample below resolved the issue.

Thanks.


wds wrote:

You can not make this siteproperties with stsadm. That's not possible. Because you can only make a property for all your sites and not per site.

We have done this with powershellscript.
But you can do this also with c# code.

$w.Properties["OU"] = "OU_Name"
$w.Properties["MyProp"] = 123
$w.Properties.Update()

Programming with Property Bag    By ben on 9/23/2006 4:22 PM
You can create and remove properties in a property bag programmatically, and you can modify the values assigned to properties. After updating a property in a property bag, you must invoke the Update() method so that the property value is persisted in the site database.

The following example shows code for adding a property to the property bag of an SPWeb object. The code also shows how to iterate through the property bag to retrieve key names and values.

Show All

Visual C# Code Example

// Obtain a reference to the current Web
SPWeb litwareWeb = SPControl.GetContextWeb(Context);
// Enable updates to be made to the SPWeb object
litwareWeb.AllowUnsafeUpdates = true;
// Add a property and update the property bag
litwareWeb.Properties.Add("Project Type1", "Development");
litwareWeb.Properties.Update();
// Disable updates for the SPWeb object
litwareWeb.AllowUnsafeUpdates = false;
// Iterate through the properties in the property bag
for each(System.Collections.DictionaryEntry webProperty
in litwareWeb.Properties)
{
this.Page.Response.Write(webProperty.Key.ToString()
+ " : "
+ webProperty.Value.ToString()
+ "
");
}

Visual Basic Code Example

' Obtain a reference to the current Web
Dim litwareWeb as SPWeb = SPControl.GetContextWeb(Context)
' Enable updates to be made to the SPWeb object
litwareWeb.AllowUnsafeUpdates = True
' Add a property and update the property bag
litwareWeb.Properties.Add("Project Type1", "Development")
litwareWeb.Properties.Update()
' Disable updates for the SPWeb object
litwareWeb.AllowUnsafeUpdates = False
' Iterate through the properties in the property bag
For Each(webProperty As System.Collections.DictionaryEntry _
In litwareWeb.Properties)
this.Page.Response.Write(webProperty.Key.ToString() _
+ " : " _
+ webProperty.Value.ToString() _
+ "
")
Next

Best regards


Callistus wrote:

wds,

Thanks for your response.
I must confess I am still lost!

Using the stsadm tool, I set and OU property = AD OU. Still receive the same error message.

stsadm -o setproperty -propertyname OU -propertyvalue [AD OU] -url [site url]

Thanks for your help,
Callistus


wds wrote:
OU error problem is resolved see my entry

Callistus wrote:
I am having the exact same problem as wds.

Any ideas, suggestions, resolution?

Could it be because the site and OU already existed before adding this solution?

Thanks.