locked
How to use stsadm to set siteowner using a custom membership provider RRS feed

  • Question

  • Hi all!

    I have a MOSS 2007 web application using forms authentication and a custom membership provider.

    I want to be able to change site collection owner using a command like this:
    stsadm -o siteowner -site http:/dev/archive/1 -ownerlogin se-abcdef
    where "se-abcdef" is a username resolved by my custom membership provider, but I get an error:
    The specified user se-abcdef could not be found.

    I have configured both my Central Administration site and the dev-webapplication with the membership provider and I can assign the "se-abcdef"-user as site collection administrator from Central Administration, and I can add the user to the SharePoint groups of the website so the membership provider seems to be working fine.

    I have tried debugging my membership provider using the instruction here http://blogs.prexens.com/Pages/Post.aspx?ID=5. I suppose it would work the same way with a custom membership provider located in the gac, but it doesnt hit my breakpoints...i put a breakpoint at every method in my membership provider.

    Any ideas anyone? I guess the stsadm doesnt use the membershipprovider settings in the centraladmin web.config...is there any other way to plug in my membership provider without creating a custom stsadm-command/extension? Any hints appreciated!:-)
    Regards
    Andreas

    Wednesday, July 6, 2011 3:34 PM

Answers

  • Hi Andreas,

     

    To configure the Web application to use forms authentication, the server administrator needs to create a file named stsadm.exe.config to enable the Stsadm command-line utility to determine how to find the authentication provider you want to use with forms authentication.

     

    You can follow the procedure “Create the stsadm.exe.config file” in this article:

    http://technet.microsoft.com/en-us/library/cc287830(office.12).aspx

    Thanks,

    Qiao Wei

    • Marked as answer by Wayne Fan Monday, July 18, 2011 6:01 AM
    Friday, July 8, 2011 8:01 AM
    Moderator

All replies

  • Hi Andreas,

     

    To configure the Web application to use forms authentication, the server administrator needs to create a file named stsadm.exe.config to enable the Stsadm command-line utility to determine how to find the authentication provider you want to use with forms authentication.

     

    You can follow the procedure “Create the stsadm.exe.config file” in this article:

    http://technet.microsoft.com/en-us/library/cc287830(office.12).aspx

    Thanks,

    Qiao Wei

    • Marked as answer by Wayne Fan Monday, July 18, 2011 6:01 AM
    Friday, July 8, 2011 8:01 AM
    Moderator
  • Hi!

    Thanx, that seems to be exactly what i'm after! :-)

    I will try it out in the next few days and report back, need to take care of a few other issues first!

    Regards

    Andreas

    Tuesday, July 12, 2011 6:40 AM