Custom Membership Provider User Rights Issue

Rate It (1)

Last post 08-06-2008 4:32 AM by subhashdike. 20 replies.

Sort Posts:

  • Custom Membership Provider User Rights Issue

    11-08-2006, 3:03 AM
    • Member
      402 point Member
    • subhashdike
    • Member since 05-13-2005, 6:32 AM
    • India
    • Posts 84

    I am using WSS V3 Beta 2 for Custom Site Definition. I am presently working on changing Authentication mode from Windows to Forms

    I have created my Own Custom Membership Provider that will talk to Oracle Database for Authentication. I have made an entry in Application's Web.config, Site's Root's web.config and web.config of Sharepoint Central Administration Site. I have creted a class custommembershipprovider which inherits MembershipProvider class and I have implemented methods GetAllusers(), Validate Users(). I added Assembly of this custom class to bin folder of application, Site Root and sharepoint central administration app_bin directory.

    From Sharepoint Central Administration I have changed Authentication mode from Windows to forms and provided my membership Provider.

    Now when I browse to site, it shows me custom login page. If I try to put invalid user name or password, it prompts me so, and If I put correct username and password, it autheticates the user and moves back to the default page of site. Here the problem starts, it is authenticating the user but not authorizing him for accessing sharepoint site content. Then again when I moved back to sharepoint central administration, Site Collection Administrator to change the site collection administrator from domain\username to username (from oracle db). Here it shows be ADD PEOPLE dialog box, but when I try to search it does not return me any user. Hence I am not able to change site collection administrator. Unless I do it I will not be able to access the site.

    My question here is where do I miss a step? Secondly that ADD PEOPLE dialog box uses which Membership Provider, I think its not at all fetching data using my own provider but using its own provider somehow.

    Can somebody help me out.

     

    ===============
    Subhash Dike
    http://coolsubhash-tech.blogspot.com

    Make sure you Mark a reply as Answer if it helps.. It will help others as well

    ===================
  • Re: Custom Membership Provider User Rights Issue

    11-18-2006, 2:01 AM
    Answer
    • Member
      402 point Member
    • subhashdike
    • Member since 05-13-2005, 6:32 AM
    • India
    • Posts 84

    I solved problem in the following way. While I was browsing the central administration I came to know about LOGS folder under 12 directory. This LOG is amazing, it just gave me exact problem with the Membership Provider. Even though I have put the Assembly (DLL that contains MembershipProvider code) inside _app_bin directory of central admin and all possible places, it was not able to load this assembly. LOG inside LOGS folder let me know that. Then I simply installed the assembly into GAC and it solved my problem. Just an advice to all those facing problem with Membership Provider. Goto LOGS directory and find the latest Log. The detailed errors will guide you towards the solution...

     

    Enjoy life

    Subhash

    ===============
    Subhash Dike
    http://coolsubhash-tech.blogspot.com

    Make sure you Mark a reply as Answer if it helps.. It will help others as well

    ===================
  • Re: Custom Membership Provider User Rights Issue

    01-09-2007, 4:05 AM
    • Member
      6 point Member
    • abhi123
    • Member since 01-09-2007, 8:54 AM
    • Posts 3

    Hi,

    I am also facing same problem.  Following are the steps which i have done:

    1) created a membership provider

    2) added membership popvider dll to sharepoint admin web.config (compilation tag) and also to application web.config (compilation tag)

    3) modified admin and application web.config for adding provider (in providers tag)

    4) installed provider DLL in GAC.

    5) modified sharepoint admin site by changing windows authentication to Forms

    6) now when i access the site, i got redirected to login.aspx. After entering the login/password, i goes to validateUser(...) function in my DLL, and it returns true (after validating the user).

    7) but it gets redirected to  http://localhost:29522/sites/site1/_layouts/AccessDenied.aspx?Source=%2fsites%2fsite1 

    with message as Error : Access Denied

    Current User

    you are signed as : username

     

    8) Also  in sharepoint central admin site, while adding user thru ADD PEOPLE dialog box,  it does not return me any user.

    Please help me out in solving this problem.

    Thanks in advance.

     

     

     

  • Re: Custom Membership Provider User Rights Issue

    01-09-2007, 9:01 AM
    • Member
      402 point Member
    • subhashdike
    • Member since 05-13-2005, 6:32 AM
    • India
    • Posts 84

    Hi,

     Regarding your issue do the following

    1. Goto Application Management -> Site Collection Administrator, try to add your user as a site collection administrator, (For this you must have implemented Membership Provider methods like Getuserbyname, getuserbyemail, getallusers etc). If it resolves user name then there will be no problem. If it does not resolve the user name (shows red underline) then goto following step 2.

    2. Check latest logs from C:\Program Files\Common Files\Microsoft Shared\Web Server Extension\12\Logs. You will find so many logs there, just take the latest (provided you tried to add user latest). Find out the latest action by time so that you can reach to the exact error. This log will give you exact error. Check and error and see if you could resolve that error. If yes, then no problem, if no then try to post that error from Log here so that we can answer.

     do let us know the status.

     Enjoy life !!

     Subhash

     

    ===============
    Subhash Dike
    http://coolsubhash-tech.blogspot.com

    Make sure you Mark a reply as Answer if it helps.. It will help others as well

    ===================
  • Re: Custom Membership Provider User Rights Issue

    01-10-2007, 12:24 AM
    • Member
      6 point Member
    • abhi123
    • Member since 01-09-2007, 8:54 AM
    • Posts 3

    Hi,

    1. Goto Application Management -> Site Collection Administrator, try to add your user as a site collection administrator, (For this you must have implemented Membership Provider methods like Getuserbyname, getuserbyemail, getallusers etc). If it resolves user name then there will be no problem. If it does not resolve the user name (shows red underline) then goto following step 2.

        >>>    It doesnot resolve user name (shows red underline). :-(

     2. Check latest logs from C:\Program Files\Common Files\Microsoft Shared\Web Server Extension\12\Logs. You will find so many logs there, just take the latest (provided you tried to add user latest). Find out the latest action by time so that you can reach to the exact error. This log will give you exact error. Check and error and see if you could resolve that error. If yes, then no problem, if no then try to post that error from Log here so that we can answer.

        >>>  I have gone thru the Log file, but there was not Log at the time of Login. following is the LOG file part: My login was at 10:51.

    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 2393, use count 1, key ct-1033-0x01010a     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 5964, use count 1, key ct-1033-0x0107     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 3623, use count 1, key ct-1033-0x0102     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 808, use count 1, key ct-1033-0x00a5ef530aa3424a9c82bb0f8a7cec9353     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General        0    Medium      Preserving template record with size 1667, use count 1, key ct-1033-0x01004d5a79bafa4a4576b79c56ff3d0d662d     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 5878, use count 1, key 14-0-3-1033-112     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 1697, use count 1, key ct-1033-0x01002cf74a4dae39480396eea7a4ba2be5fb     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 2392, use count 2, key ct-1033-0x010109     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 2056, use count 1, key ct-1033-0x010104     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      MRU trim pass 4     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 3075, use count 1, key 14-00BFEA712062426C90BF714C59600103-3-1033-103     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 3450, use count 1, key ct-1033-0x010100b4cbd48e029a4ad8b62cb0e41868f2b0     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 2520, use count 1, key ct-1033-0x010105     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 6885, use count 1, key ct-1033-0x012002     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 4020, use count 4, key ct-1033-0x010100c568db52d9d0a14d9b2fdcc96666e9f2007948130ec3db064584e219954237af39     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 379, use count 4, key ct-1033-0x     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 1392, use count 1, key ct-1033-0x0104     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Preserving template record with size 2901, use count 1, key ct-1033-0x0109     
    01/10/2007 10:50:13.95     OWSTIMER.EXE (0x02F0)                       0x06D0    Windows SharePoint Services       General         0    Medium      Exiting MRU trim routine.     
    01/10/2007 10:50:37.90     wsstracing.exe (0x0448)                     0x14D4    ULS Logging                       Unified Logging Service           uls1    Monitorable    Tracing Service lost trace events.  Current value 2.     
    01/10/2007 10:50:48.18     OWSTIMER.EXE (0x02F0)                       0x17B0    Windows SharePoint Services       General         8e25    Medium      Failed to look up string with key "DistributionLists_Alias", keyfile core.     
    01/10/2007 10:50:48.18     OWSTIMER.EXE (0x02F0)                       0x17B0    Windows SharePoint Services       General         8l3c    Medium      Localized resource for token 'DistributionLists_Alias' could not be found for file with path: "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\xml\base.xml".     
    01/10/2007 10:50:54.20     OWSTIMER.EXE (0x02F0)                       0x1414    Office Server                     Setup and Upgrade    8u3j    High        Registry key value {SearchThrottled} was not found under registry hive {Software\Microsoft\Office Server\12.0}. Assuming search sku is not throttled.     
    01/10/2007 10:50:54.20     OWSTIMER.EXE (0x02F0)                       0x1414    SharePoint Portal Server          SSO                  8inc    Medium      In SSOService::Synch(), sso database conn string:      
    01/10/2007 10:51:54.20     OWSTIMER.EXE (0x02F0)                       0x1414    Office Server                     Setup and Upgrade   8u3j    High        Registry key value {SearchThrottled} was not found under registry hive {Software\Microsoft\Office Server\12.0}. Assuming search sku is not throttled.     
    01/10/2007 10:51:54.20     OWSTIMER.EXE (0x02F0)                       0x1414    SharePoint Portal Server          SSO                 8inc    Medium      In SSOService::Synch(), sso database conn string:      
    01/10/2007 10:52:18.82     w3wp.exe (0x1194)                           0x161C    Windows SharePoint Services       General              0    Medium      Entering MRU trim routine.     
    01/10/2007 10:52:18.82     w3wp.exe (0x1194)                           0x161C    Windows SharePoint Services       General               0    Medium      Initial table size: 19819192 in 121 entries     
    01/10/2007 10:52:18.82     w3wp.exe (0x1194)                           0x161C    Windows SharePoint Services       General               0    Medium      Final table size: 19819192 in 121 entries     
    01/10/2007 10:52:18.82     w3wp.exe (0x1194)                           0x161C    Windows SharePoint Services       General               0    Medium      Exiting MRU trim routine.     
    01/10/2007 10:52:54.20     OWSTIMER.EXE (0x02F0)                       0x1414    Office Server                     Setup and Upgrade   8u3j    High        Registry key value {SearchThrottled} was not found under registry hive {Software\Microsoft\Office Server\12.0}. Assuming search sku is not throttled.     
    01/10/2007 10:52:54.20     OWSTIMER.EXE (0x02F0)                       0x1414    SharePoint Portal Server          SSO                 8inc    Medium      In SSOService::Synch(), sso database conn string:      
    01/10/2007 10:53:54.20     OWSTIMER.EXE (0x02F0)                       0x1414    Office Server                     Setup and Upgrade  8u3j    High        Registry key value {SearchThrottled} was not found under registry hive {Software\Microsoft\Office Server\12.0}. Assuming search sku is not throttled.     
    01/10/2007 10:53:54.20     OWSTIMER.EXE (0x02F0)                       0x1414    SharePoint Portal Server          SSO                8inc    Medium      In SSOService::Synch(), sso database conn string:      

     There is no logging statement at 10:51.

    Please let me know if you have any suggestions.

    Thanks,

    Abhi 

     

  • Re: Custom Membership Provider User Rights Issue

    01-10-2007, 6:36 AM
    • Member
      402 point Member
    • subhashdike
    • Member since 05-13-2005, 6:32 AM
    • India
    • Posts 84

    >>following is the LOG file part: My login was at 10:51.

     Hey Can you confirm one thing, dont look for log after you try to login. But

    when you follow the step of Resolving user from Centeral Administration and it shows red line. Immediately after you see the red underline, go to logs and check for current.

     There must be one error like "Error resolving user <>..."

    Let us know to help you out..

     Subhash

    ===============
    Subhash Dike
    http://coolsubhash-tech.blogspot.com

    Make sure you Mark a reply as Answer if it helps.. It will help others as well

    ===================
  • Re: Custom Membership Provider User Rights Issue

    01-11-2007, 5:59 AM
    • Member
      2 point Member
    • amolthombre
    • Member since 01-11-2007, 10:52 AM
    • Posts 1

    Hi,

        I tried with the both the points mentioned above

    1. Goto Application Management -> Site Collection Administrator, try to add your user as a site collection administrator, (For this you must have implemented Membership Provider methods like Getuserbyname, getuserbyemail, getallusers etc). If it resolves user name then there will be no problem. If it does not resolve the user name (shows red underline) then goto following step 2.

    It does not resloves username

    2. Check latest logs from C:\Program Files\Common Files\Microsoft Shared\Web Server Extension\12\Logs. You will find so many logs there, just take the latest (provided you tried to add user latest). Find out the latest action by time so that you can reach to the exact error. This log will give you exact error. Check and error and see if you could resolve that error. If yes, then no problem, if no then try to post that error from Log here so that we can answer.

    I got the following error in the log file.

     “Error in resolving user 'snehal' : System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.ResolvePrincipal(String input, Boolean inputIsEmailOnly, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer)     at Microsoft.SharePoint.Utilities.SPUtility.ResolvePrincipalInternal(SPWeb web, SPWebApplication webApp, Nullable`1 urlZone, String input, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer, Boolean inputIsEmailOnly, Boolean alwaysAddWindowsResolver).”

     

     

      

     

     

     

     

     

     

  • Re: Custom Membership Provider User Rights Issue

    01-11-2007, 6:48 AM
    • Member
      6 point Member
    • abhi123
    • Member since 01-09-2007, 8:54 AM
    • Posts 3

    Hi Subash,

    When I try to resolve user from central Admin, it shows red line. In log it shows:

    Error in resolving user 'ebruser' : System.Configuration.ConfigurationErrorsException: Exception has been thrown by the target of an invocation. (C:\Inetpub\wwwroot\wss\VirtualDirectories\20277\web.config line 136)     at System.Web.Security.Membership.Initialize()     at System.Web.Security.Membership.get_Providers()     at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.get_Provider()     at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.SupportsPrincipal(SPPrincipalType scopes, SPPrincipalSource sources)     at Microsoft.SharePoint.Utilities.SPUtility.ResolvePrincipalInternal(SPWeb web, SPWebApplication webApp, Nullable`1 urlZone, String input, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer, Boolean inputIsEmailOnly, Boolean alwaysAddWindowsResolver).    

    01/11/2007 17:00:08.97     w3wp.exe (0x1324)                           0x11F0    Windows SharePoint Services       General                           72e7    Medium      Error in searching user 'ebruser' : System.Configuration.ConfigurationErrorsException: Exception has been thrown by the target of an invocation. (C:\Inetpub\wwwroot\wss\VirtualDirectories\20277\web.config line 136)     at System.Web.Security.Membership.Initialize()     at System.Web.Security.Membership.get_Providers()     at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.get_Provider()     at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.SupportsPrincipal(SPPrincipalType scopes, SPPrincipalSource sources)     at Microsoft.SharePoint.Utilities.SPUtility.SearchPrincipalFromResolvers(List`1 resolvers, String input, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer, Int32 maxCount, Boolean& reachMaxCount, Dictionary2 usersDict).

    But my dll is registered in app as well as in admin web.config at two locations:

    <membership defaultProvider="ADSProvider">
          <providers>
            <clear />
            <add name="ADSProvider" type="ADSMemberShipProvider,SPMembership, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9afc4f6c06543164" />
          </providers>
        </membership>

    also at following place:

    <compilation batch="false" debug="false">
          <assemblies>
            <add assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
            <add assembly="SPMembership, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9afc4f6c06543164" />
          </assemblies>

     Same DLL is in GAC also.

    It is not recognizing SPMembership from central admin, but going to code in debug mode while  i tried to login (in ValidateUser(...)).

    Please let me know ur more inputs.

    Thanks,

    Abhi 

     

     

     

  • Re: Custom Membership Provider User Rights Issue

    03-07-2007, 10:34 AM
    • Member
      4 point Member
    • xinarg
    • Member since 03-07-2007, 3:24 PM
    • Posts 2

    Hello,

    It seem's that I'm not alone with my problems ;-)

    For me the error is............ :

    03/07/2007 16:16:53.42 	w3wp.exe (0x0F20)                       	0x064C	Windows SharePoint Services   	General                       	72e9	Medium  	Error in resolving user 'cgrisantv' : System.NullReferenceException: Object reference not set to an instance of an object.     at LMSP.LDAPMemberShipProvider.GetUser(String username, Boolean userIsOnline)     at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.ResolvePrincipal(String input, Boolean inputIsEmailOnly, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer)     at Microsoft.SharePoint.Utilities.SPUtility.ResolvePrincipalInternal(SPWeb web, SPWebApplication webApp, Nullable`1 urlZone, String input, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer, Boolean inputIsEmailOnly, Boolean alwaysAddWindowsResolver).	 
    03/07/2007 16:16:53.43 	w3wp.exe (0x0F20)                       	0x064C	Windows SharePoint Services   	General                       	72e7	Medium  	Error in searching user 'cgrisantv' : System.NullReferenceException: Object reference not set to an instance of an object.     at LMSP.LDAPMemberShipProvider.GetUser(String username, Boolean userIsOnline)     at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.ResolvePrincipal(String input, Boolean inputIsEmailOnly, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer)     at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.SearchPrincipals(String input, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer, Int32 maxCount, Boolean& bReachMaxCount)     at Microsoft.SharePoint.Utilities.SPUtility.SearchPrincipalFromResolvers(List`1 resolvers, String input, SPPrincipalType scopes, SPPrincipalSo...	 
    03/07/2007 16:16:53.43*	w3wp.exe (0x0F20)                       	0x064C	Windows SharePoint Services   	General                       	72e7	Medium  	...urce sources, SPUserCollection usersContainer, Int32 maxCount, Boolean& reachMaxCount, Dictionary`2 usersDict).
    I tested the method getUser separately and it don't return a nullpointer exception...
     I can say that the mapping in the web.conf is correct, the assembly loads correctly and the provider is good declared, (I corrected a lot of errors with the logs ;-) )
     For me the problem is in the way I writed my MembershipProvider :
      1    using System;
    2 using System.Collections.Specialized;
    3 using System.Web.Security;
    4 using System.Data.SqlClient;
    5 using System.Collections.Generic;
    6 using System.Text;
    7
    8 namespace LMSP
    9 {
    10 public class LDAPMemberShipProvider : MembershipProvider
    11 {
    12 private string _applicationName;
    13 private string _connectionStringName;
    14 private string _name;
    15 //private string connectionString="Data Source=EIFRMOSS02;Initial Catalog=custom_identification;Integrated Security=True";
    16 public LDAPMemberShipProvider()
    17 {
    18 //
    19 // TODO: Add constructor logic here
    20 //

    21 }
    22
    23
    24 // MembershipProvider Properties
    25 public override string ApplicationName
    26 {
    27 get { return _applicationName; }
    28 set { _applicationName = value; }
    29 }
    30
    31
    32 public override void Initialize(string name,
    33 NameValueCollection config)
    34 {
    35 if (config == null)
    36 throw new ArgumentNullException();
    37 _applicationName = config["applicationName"];
    38 _connectionStringName = config["connectionStringName"];
    39 _name = name;
    40
    41 base.Initialize(name, config);
    42 }
    43
    44 public override bool EnablePasswordRetrieval
    45 {
    46 get { return false; }
    47 }
    48
    49 public override bool EnablePasswordReset
    50 {
    51 get { return false; }
    52 }
    53
    54 public override int MaxInvalidPasswordAttempts
    55 {
    56 get { throw new NotSupportedException(); }
    57 }
    58
    59 public override int MinRequiredNonAlphanumericCharacters
    60 {
    61 get { throw new NotSupportedException(); }
    62 }
    63
    64 public override int MinRequiredPasswordLength
    65 {
    66 get { throw new NotSupportedException(); }
    67 }
    68
    69 public override int PasswordAttemptWindow
    70 {
    71 get { throw new NotSupportedException(); }
    72 }
    73
    74 public override MembershipPasswordFormat PasswordFormat
    75 {
    76 get { throw new NotSupportedException(); }
    77 }
    78
    79 public override string PasswordStrengthRegularExpression
    80 {
    81 get { throw new NotSupportedException(); }
    82 }
    83
    84 public override bool RequiresQuestionAndAnswer
    85 {
    86 get { throw new NotSupportedException(); }
    87 }
    88
    89 public override bool RequiresUniqueEmail
    90 {
    91 get { throw new NotSupportedException(); }
    92 }
    93
    94 public override MembershipUser CreateUser(string username,
    95 string password, string email, string passwordQuestion,
    96 string passwordAnswer, bool isApproved, object providerUserKey,
    97 out MembershipCreateStatus status)
    98 {
    99 throw new NotSupportedException();
    100 }
    101
    102 public override bool ChangePasswordQuestionAndAnswer
    103 (string username, string password,
    104 string newPasswordQuestion, string newPasswordAnswer)
    105 {
    106 throw new NotSupportedException();
    107 }
    108
    109 public override string GetPassword(string username,
    110 string answer)
    111 {
    112 throw new NotSupportedException();
    113 }
    114
    115 public override bool ChangePassword(string username,
    116 string oldPassword, string newPassword)
    117 {
    118 throw new NotSupportedException();
    119 }
    120
    121 public override string ResetPassword(string username,
    122 string answer)
    123 {
    124 throw new NotSupportedException();
    125 }
    126
    127 public override void UpdateUser(MembershipUser user)
    128 {
    129 throw new NotSupportedException();
    130 }
    131
    132 public override bool ValidateUser(string username,
    133 string password)
    134 {
    135 // je crée la connexion de mon serveur ainsi que la base de données concernée
    136 SqlConnection databaseConnexion = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings[_connectionStringName].ConnectionString);
    137 //SqlConnection databaseConnexion = new SqlConnection(connectionString);
    138
    139 // je crée maintenant une requête de selection qui permettra d'afficher les valeurs souhaités...

    140 SqlCommand databaseCommand = new SqlCommand("SELECT password FROM T_Identification WHERE login='" + username + "'", databaseConnexion);
    141
    142 // Là j'ouvre la connexion Sql
    143 databaseConnexion.Open();
    144
    145 // Et je définie une datareader...
    146 SqlDataReader dr = databaseCommand.ExecuteReader();
    147
    148 if (dr == null) return false;
    149
    150 if (!dr.Read()) return false;
    151
    152 if (dr["password"] != null && dr["password"].Equals(password))
    153 {
    154 return true;
    155 }
    156 else
    157 {
    158 return false;
    159 }
    160 }
    161
    162 public override bool UnlockUser(string userName)
    163 {
    164 throw new NotSupportedException();
    165 }
    166
    167 public override MembershipUser GetUser(object providerUserKey,
    168 bool userIsOnline)
    169 {
    170 /*SqlConnection databaseConnexion = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings[_connectionStringName].ConnectionString);
    171 //SqlConnection databaseConnexion = new SqlConnection(connectionString);
    172 SqlCommand databaseCommand = new SqlCommand("SELECT ID_Login,login,email FROM T_Identification WHERE ID_LOGIN=" + providerUserKey.ToString(), databaseConnexion);
    173 databaseConnexion.Open();
    174
    175 // Et je définis un datareader...
    176 SqlDataReader dr = databaseCommand.ExecuteReader();
    177 if (dr == null) return null;
    178 MembershipUser user = null;
    179 while (dr.Read())
    180 {
    181 user = new MembershipUser(_name, dr["login"].ToString(), dr["ID_Login"], dr["email"].ToString(), "", "", true, false, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now);
    182 }
    183 return user;*/

    184 throw new NotSupportedException();
    185 }
    186
    187 public override MembershipUser GetUser(string username,
    188 bool userIsOnline)
    189 {
    190 SqlConnection databaseConnexion = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings[_connectionStringName].ConnectionString);
    191 //SqlConnection databaseConnexion = new SqlConnection(connectionString);
    192 SqlCommand databaseCommand = new SqlCommand("SELECT ID_Login,login,email FROM T_Identification WHERE login='" + username + "'", databaseConnexion);
    193 databaseConnexion.Open();
    194
    195 // Et je définis un datareader...
    196 SqlDataReader dr = databaseCommand.ExecuteReader();
    197 if (dr == null) return null;
    198 MembershipUser user = null;
    199 while (dr.Read())
    200 {
    201 user = new MembershipUser(_name, dr["login"].ToString(), dr["ID_Login"], dr["email"].ToString(), "", "", true, false, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now);
    202 }
    203 return user;
    204 }
    205
    206 public override string GetUserNameByEmail(string email)
    207 {
    208 throw new NotSupportedException();
    209 }
    210
    211
    212 public override bool DeleteUser(string username,
    213 bool deleteAllRelatedData)
    214 {
    215 throw new NotSupportedException();
    216 }
    217
    218 public override MembershipUserCollection GetAllUsers
    219 (int pageIndex, int pageSize, out int totalRecords)
    220 {
    221 totalRecords = 0;
    222 SqlConnection databaseConnexion = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings[_connectionStringName].ConnectionString);
    223 //SqlConnection databaseConnexion = new SqlConnection(connectionString);
    224 SqlCommand databaseCommand = new SqlCommand("SELECT ID_Login,login,nom,prenom,email FROM T_Identification", databaseConnexion);
    225 databaseConnexion.Open();
    226
    227 // Et je définis un datareader...
    228 SqlDataReader dr = databaseCommand.ExecuteReader();
    229 if (dr == null) return null;
    230 MembershipUserCollection users = new MembershipUserCollection();
    231 while (dr.Read())
    232 {
    233 totalRecords++;
    234 MembershipUser user = new MembershipUser(_name, dr["login"].ToString(), dr["ID_Login"], dr["email"].ToString(), "", "", true, false, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now);
    235 users.Add(user);
    236 }
    237 return users;
    238 }
    239
    240 public override int GetNumberOfUsersOnline()
    241 {
    242 throw new NotSupportedException();
    243 }
    244
    245 public override MembershipUserCollection FindUsersByName
    246 (string usernameToMatch, int pageIndex, int pageSize,
    247 out int totalRecords)
    248 {
    249 totalRecords = 0;
    250 SqlConnection databaseConnexion = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings[_connectionStringName].ConnectionString);
    251 //SqlConnection databaseConnexion = new SqlConnection(connectionString);
    252 SqlCommand databaseCommand = new SqlCommand("SELECT ID_Login,login,nom,prenom,email FROM T_Identification WHERE login LIKE '" + usernameToMatch + "'", databaseConnexion);
    253 databaseConnexion.Open();
    254
    255 // Et je définis un datareader...
    256 SqlDataReader dr = databaseCommand.ExecuteReader();
    257 if (dr == null) return null;
    258 MembershipUserCollection users = new MembershipUserCollection();
    259 while (dr.Read())
    260 {
    261 totalRecords++;
    262 MembershipUser user = new MembershipUser(_name, dr["login"].ToString(), dr["ID_Login"], dr["email"].ToString(), "", "", true, false, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now);
    263 users.Add(user);
    264 }
    265 return users;
    266 }
    267
    268 public override MembershipUserCollection FindUsersByEmail
    269 (string emailToMatch, int pageIndex, int pageSize,
    270 out int totalRecords)
    271 {
    272 throw new NotSupportedException();
    273 }
    274 /*
    275 // Virtual methods
    276 protected virtual byte[] EncryptPassword(byte[] password);
    277 protected virtual byte[] DecryptPassword(byte[] encodedPassword);
    278 protected virtual void OnValidatingPassword
    279 (ValidatePasswordEventArgs e);
    280 */

    281 }
    282 }
    283
    If someone could help me, I have a headache it's terrible Ick!
     Thanks a lot and cu 
     
     

     


     

  • Re: Custom Membership Provider User Rights Issue

    03-08-2007, 3:34 AM
    • Member
      4 point Member
    • xinarg
    • Member since 03-07-2007, 3:24 PM
    • Posts 2
    YESSSSS IT WORKS ;-), the mistake was in my web.conf.... I forgot to specify connectionStringName :-)....
  • Re: Custom Membership Provider User Rights Issue

    05-10-2007, 2:38 PM
    • Member
      2 point Member
    • neeraj79
    • Member since 05-10-2007, 3:24 PM
    • Posts 1

    I tried using ur code, with my ConnectionString.

     I tried to test it first frm the ASP.NET configuration tool...this is what error i get " Specified Method Not Supported "

     

    I dont know which method is it talking about...

     

    How did u deploy this code of urs into Sharepoint ? Can u pls explain

     

    Neeraj ( neerajshah81@gmail.com)
     

  • Re: Custom Membership Provider User Rights Issue

    06-14-2007, 5:26 AM
    • Member
      4 point Member
    • chiranthk
    • Member since 06-14-2007, 9:23 AM
    • Posts 2

    Hi subash

    i have got the same error in the log file , pls tell me ASAP how to solve it.

    I have done all the steps correctly .

    Thanks

    chiranth

  • Re: Custom Membership Provider User Rights Issue

    06-17-2007, 9:39 AM
    • Member
      4 point Member
    • chiranthk
    • Member since 06-14-2007, 9:23 AM
    • Posts 2

    Hi subhash

    pls mail me to chiranthk@aditi.com

    i require ur help send me ur contact number . I am not able to set up my custom provider

    Expectin ur reply

    chiranth

  • Re: Custom Membership Provider User Rights Issue

    05-02-2008, 5:11 PM

    Subhash,

       Thanks for the hint, i was hitting my heads with the "Unexpected error happend" message from sharepoint. After looking into the logs. now i resolved my issues.

     Hats of Subhash... sabbash!!!

     --

    Esen

  • Re: Custom Membership Provider User Rights Issue

    06-25-2008, 2:03 PM
    • Member
      6 point Member
    • rideon88
    • Member since 06-25-2008, 5:46 PM
    • Posts 4

    I have been working on this project for almost a week now. I have forms auth working on the aspsqlnet database that the regsql wizard created, but I really need to get it to authenticate against an existing database with 1000's of users that my company runs off of. I've written my custom membership provider, written a class to connect to the sql database and even configured the web.config file but things just don't seem to work. I'm going to paste my code, but I'd also ask that someone posts up the entire web.config and the membership provider class.

    Also, can you tell me where to put the CustomMembershipProvider.cs file in the sharepoint directory, and how to make sharepoint to read from it?In my failed VB tests it was in App_code but there is no such folder in sharepoint.

     Third, should I be able to interact using the Website-> ASPNET configuration tool? I'm so lost there is no useful documentation anywhere out there.

     <b>MembershipProvider.cs file</b>

     

    1    using System;
    2 using System.Data;
    3 using System.Data.SqlClient;
    4 using System.Data.OleDb;
    5 using System.Data.Odbc;
    6 using System.Configuration;
    7 using System.Web;
    8 using System.Web.Security;
    9 using System.Web.UI;
    10 using System.Web.UI.WebControls;
    11 using System.Web.UI.WebControls.WebParts;
    12 using System.Web.UI.HtmlControls;
    13 using TreoSolutions.Data;
    14
    15 /// <summary>
    16 /// Summary description for TreoMembershipProvider
    17 /// </summary>

    18 public class TreoMembershipProvider:MembershipProvider
    19 {
    20 public TreoMembershipProvider()
    21 {
    22 //
    23 // TODO: Add constructor logic here
    24 //

    25 }
    26
    27 public override string ApplicationName
    28 {
    29 get
    30 {
    31 throw new Exception("The method or operation is not implemented.");
    32 }
    33 set
    34 {
    35 throw new Exception("The method or operation is not implemented.");
    36 }
    37 }
    38
    39 public override bool ChangePassword(string username, string oldPassword, string newPassword)
    40 {
    41 throw new Exception("The method or operation is not implemented.");
    42 }
    43
    44 public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer)
    45 {
    46 throw new Exception("The method or operation is not implemented.");
    47 }
    48
    49 public override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
    50 {
    51 throw new Exception("The method or operation is not implemented.");
    52 }
    53
    54 public override bool DeleteUser(string username, bool deleteAllRelatedData)
    55 {
    56 throw new Exception("The method or operation is not implemented.");
    57 }
    58
    59 public override bool EnablePasswordReset
    60 {
    61 get { throw new Exception("The method or operation is not implemented."); }
    62 }
    63
    64 public override bool EnablePasswordRetrieval
    65 {
    66 get { throw new Exception("The method or operation is not implemented."); }
    67 }
    68
    69 public override MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize, out int totalRecords)
    70 {
    71 throw new Exception("The method or operation is not implemented.");
    72 }
    73
    74 public override MembershipUserCollection FindUsersByName(string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)
    75 {
    76 throw new Exception("The method or operation is not implemented.");
    77 }
    78
    79 public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)
    80 {
    81 throw new Exception("The method or operation is not implemented.");
    82 }
    83
    84 public override int GetNumberOfUsersOnline()
    85 {
    86 throw new Exception("The method or operation is not implemented.");
    87 }
    88
    89 public override string GetPassword(string username, string answer)
    90 {
    91 throw new Exception("The method or operation is not implemented.");
    92 }
    93
    94 public override MembershipUser GetUser(string username, bool userIsOnline)
    95 {
    96 throw new Exception("The method or operation is not implemented.");
    97 }
    98
    99 public override MembershipUser GetUser(object providerUserKey, bool userIsOnline)
    100 {
    101 throw new Exception("The method or operation is not implemented.");
    102 }
    103
    104 public override string GetUserNameByEmail(string email)
    105 {
    106 throw new Exception("The method or operation is not implemented.");
    107 }
    108
    109 public override int MaxInvalidPasswordAttempts
    110 {
    111 get { throw new Exception("The method or operation is not implemented."); }
    112 }
    113
    114 public override int MinRequiredNonAlphanumericCharacters
    115 {
    116 get { throw new Exception("The method or operation is not implemented."); }
    117 }
    118
    119 public override int MinRequiredPasswordLength
    120 {
    121 get { throw new Exception("The method or operation is not implemented."); }
    122 }
    123
    124 public override int PasswordAttemptWindow
    125 {
    126 get { throw new Exception("The method or operation is not implemented."); }
    127 }
    128
    129 public override MembershipPasswordFormat PasswordFormat
    130 {
    131 get { throw new Exception("The method or operation is not implemented."); }
    132 }
    133
    134 public override string PasswordStrengthRegularExpression
    135 {
    136 get { throw new Exception("The method or operation is not implemented."); }
    137 }
    138
    139 public override bool RequiresQuestionAndAnswer
    140 {
    141 get { throw new Exception("The method or operation is not implemented."); }
    142 }
    143
    144 public override bool RequiresUniqueEmail
    145 {
    146 get { throw new Exception("The method or operation is not implemented."); }
    147 }
    148
    149 public override string ResetPassword(string username, string answer)
    150 {
    151 throw new Exception("The method or operation is not implemented.");
    152 }
    153
    154 public override bool UnlockUser(string userName)
    155 {
    156 throw new Exception("The method or operation is not implemented.");
    157 }
    158
    159 public override void UpdateUser(MembershipUser user)
    160 {
    161 throw new Exception("The method or operation is not implemented.");
    162 }
    163
    164 public override bool ValidateUser(string username, string password)
    165 {
    166 SQLData TreoData = null;
    167 DataTable UserActivity = null;
    168
    169 TreoData = new SQLData();
    170 UserActivity = TreoData.GetData("Select * FROM [user] WHERE email = '"+username+"' AND password = '"+password+"'");
    171 if( UserActivity == null )
    172 return false;
    173 else
    174 return true
    ;
    175
    176
    177 }
    178 }
    179
     <b>Sharepoint Web.config file</b>
     
    1    
    2 <configuration>
    3 <configSections>
    4 <sectionGroup name="SharePoint">
    5 <section name="SafeControls" type="Microsoft.SharePoint.ApplicationRuntime.SafeControlsConfigurationHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    6 <section name="RuntimeFilter" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    7 <section name="WebPartLimits" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    8 <section name="WebPartCache" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    9 <section name="WebPartWorkItem" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    10 <section name="WebPartControls" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    11 <section name="SafeMode" type="Microsoft.SharePoint.ApplicationRuntime.SafeModeConfigurationHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    12 <section name="MergedActions" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    13 <section name="PeoplePickerWildcards" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    14 </sectionGroup>
    15 <sectionGroup name="System.Workflow.ComponentModel.WorkflowCompiler" type="System.Workflow.ComponentModel.Compiler.WorkflowCompilerConfigurationSectionGroup, System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    16 <section name="authorizedTypes" type="System.Workflow.ComponentModel.Compiler.AuthorizedTypesSectionHandler, System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    17 </sectionGroup>
    18 </configSections>
    19 <SharePoint>
    20 <SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
    21 <PageParserPaths>
    22 </PageParserPaths>
    23 </SafeMode>
    24 <WebPartLimits MaxZoneParts="50" PropertySize="1048576" />
    25 <WebPartCache Storage="CacheObject" />
    26 <WebPartControls DatasheetControlGuid="65BCBEE4-7728-41a0-97BE-14E1CAE36AAE" />
    27 <SafeControls>
    28 <SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    29 <SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.HtmlControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    30 <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    31 <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="SqlDataSource" Safe="False" AllowRemoteDesigner="False" />
    32 <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="AccessDataSource" Safe="False" AllowRemoteDesigner="False" />
    33 <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="XmlDataSource" Safe="False" AllowRemoteDesigner="False" />
    34 <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="ObjectDataSource" Safe="False" AllowRemoteDesigner="False" />
    35 <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    36 <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebPartPages" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    37 <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    38 <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.ApplicationPages" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    39 <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.SoapServer" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    40 <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Meetings" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    41 <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    42 <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebPartPages" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    43 <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    44 <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.ApplicationPages" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    45 <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.SoapServer" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    46 <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Meetings" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    47 <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Workflow" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    48 <SafeControl Assembly="Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Search.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    49 <SafeControl Assembly="Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Search.Internal.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
    50 <SafeControl src="~/_controltemplates/*" IncludeSubFolders="True" Safe="True" AllowRemoteDesigner="True" />
    51 <SafeControl Assembly="CKS.FormsBasedAuthentication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d0c9b215512a2c5d" Namespace="CKS.FormsBasedAuthentication" TypeName="*" Safe="True" />
    52 </SafeControls>
    53 <PeoplePickerWildcards>
    54 <clear />
    55 <add key="AspNetSqlMembershipProvider" value="%" />
    56 </PeoplePickerWildcards>
    57 </SharePoint>
    58 <connectionStrings>
    59 <remove name="LocalSqlServer" />
    60 <add name="LocalSqlServer" connectionString="Server=x-db2;Database=Aarons_Playground;uid=treoapp;pwd=xxxx;" providerName="System.Data.SqlClient" />
    61 </connectionStrings>
    62 <system.web>
    63 <!-- membership provider -->
    64 <membership defaultProvider="AspNetSqlMembershipProvider">
    65 <providers>
    66 <add connectionStringName="LocalSqlServer"
    67 enablePasswordRetrieval="false"
    68 enablePasswordReset="true"
    69 requiresQuestionAndAnswer="false"
    70 applicationName="/"
    71 requiresUniqueEmail="false"
    72 passwordFormat="Hashed"
    73 maxInvalidPasswordAttempts="5"
    74 minRequiredPasswordLength="5"
    75 minRequiredNonalphanumericCharacters="0"
    76 passwordAttemptWindow="10"
    77 passwordStrengthRegularExpression=""
    78 name="AspNetSqlMembershipProvider "
    79 type="System.Web.Security.SqlMembershipProvider, System.Web,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    80 </providers>
    81 </membership>
    82 <!-- role provider -->
    83 <roleManager enabled="true">
    84 <providers>
    85 <add connectionStringName="LocalSqlServer"
    86 applicationName="/"
    87 name="SharepointDev"
    88 type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    89 </providers>
    90 </roleManager>
    91 <securityPolicy>
    92 <trustLevel name="WSS_Medium" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_mediumtrust.config" />
    93 <trustLevel name="WSS_Minimal" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_minimaltrust.config" />
    94 </securityPolicy>
    95 <httpHandlers>
    96 <remove verb="GET,HEAD,POST" path="*" />
    97 <add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    98 <add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    99 </httpHandlers>
    100 <customErrors mode="Off" />
    101 <httpRuntime maxRequestLength="51200" />
    102 <authentication mode="Forms">
    103 <forms name="cookie" loginUrl="/_layouts/login.aspx" timeout="30" />
    104 </authentication>
    105 <identity impersonate="true" />
    106 <authorization>
    107 <allow users="*" />
    108 </authorization>
    109 <httpModules>
    110 <clear />
    111 <add name="SPRequest" type="Microsoft.SharePoint.ApplicationRuntime.SPRequestModule, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    112 <add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
    113 <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
    114 <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
    115 <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
    116 <add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
    117 <!-- <add name="Session" type="System.Web.SessionState.SessionStateModule"/> -->
    118 </httpModules>
    119 <globalization fileEncoding="utf-8" />
    120 <compilation batch="true" debug="true">
    121 <assemblies>
    122 <add assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    123 </assemblies>
    124 <expressionBuilders>
    125 <remove expressionPrefix="Resources" />
    126 <add expressionPrefix="Resources" type="Microsoft.SharePoint.SPResourceExpressionBuilder, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    127 <add expressionPrefix="SPHtmlEncodedResources" type="Microsoft.SharePoint.SPHtmlEncodedResourceExpressionBuilder, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    128 <add expressionPrefix="SPSimpleFormattingEncodedResources" type="Microsoft.SharePoint.SPSimpleFormattingEncodedResourceExpressionBuilder, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    129 </expressionBuilders>
    130 </compilation>
    131 <pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
    132 <namespaces>
    133 <remove namespace="System.Web.UI.WebControls.WebParts" />
    134 </namespaces>
    135 <tagMapping>
    136 <add tagType="System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mappedTagType="Microsoft.SharePoint.WebControls.SPSqlDataSource, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    137 </tagMapping>
    138 </pages>
    139 <siteMap defaultProvider="SPSiteMapProvider" enabled="true">
    140 <providers>
    141 <add name="SPNavigationProvider" type="Microsoft.SharePoint.Navigation.SPNavigationProvider, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    142 <add name="SPSiteMapProvider" type="Microsoft.SharePoint.Navigation.SPSiteMapProvider, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    143 <add name="SPContentMapProvider" type="Microsoft.SharePoint.Navigation.SPContentMapProvider, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    144 <add name="SPXmlContentMapProvider" siteMapFile="_app_bin/layouts.sitemap" type="Microsoft.SharePoint.Navigation.SPXmlContentMapProvider, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    145 </providers>
    146 </siteMap>
    147 <trust level="WSS_Minimal" originUrl="" />
    148 <webParts>
    149 <transformers>
    150 <add name="TransformableFilterValuesToFilterValuesTransformer" type="Microsoft.SharePoint.WebPartPages.TransformableFilterValuesToFilterValuesTransformer, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    151 <add name="TransformableFilterValuesToParametersTransformer" type="Microsoft.SharePoint.WebPartPages.TransformableFilterValuesToParametersTransformer, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    152 <add name="TransformableFilterValuesToFieldTransformer" type="Microsoft.SharePoint.WebPartPages.TransformableFilterValuesToFieldTransformer, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    153 </transformers>
    154 </webParts>
    155 <machineKey validationKey="2E98DE67D80F7AE7DFD3B637439125DF0DD601585C7BB0C8" decryptionKey="147D6EB9B20E7BE7D9400ACF42482791F1EC5E1589D4EA6A" validation="SHA1" />
    156 </system.web>
    157 <runtime>
    158 <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    159 <dependentAssembly>
    160 <assemblyIdentity name="Microsoft.SharePoint" publicKeyToken="71e9bce111e9429c" culture="neutral" />
    161 <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />
    162 </dependentAssembly>
    163 <dependentAssembly>
    164 <assemblyIdentity name="Microsoft.SharePoint.Dsp" publicKeyToken="71e9bce111e9429c" culture="neutral" />
    165 <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />
    166 </dependentAssembly>
    167 <dependentAssembly>
    168 <assemblyIdentity name="Microsoft.SharePoint.Dsp.OleDb" publicKeyToken="71e9bce111e9429c" culture="neutral" />
    169 <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />
    170 </dependentAssembly>
    171 <dependentAssembly>
    172 <assemblyIdentity name="Microsoft.SharePoint.Dsp.SoapPT" publicKeyToken="71e9bce111e9429c" culture="neutral" />
    173 <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />
    174 </dependentAssembly>
    175 <dependentAssembly>
    176 <assemblyIdentity name="Microsoft.SharePoint.Dsp.Sts" publicKeyToken="71e9bce111e9429c" culture="neutral" />
    177 <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />
    178 </dependentAssembly>
    179 <dependentAssembly>
    180 <assemblyIdentity name="Microsoft.SharePoint.Dsp.XmlUrl" publicKeyToken="71e9bce111e9429c" culture="neutral" />
    181 <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />
    182 </dependentAssembly>
    183 <dependentAssembly>
    184 <assemblyIdentity name="Microsoft.SharePoint.intl" publicKeyToken="71e9bce111e9429c" culture="neutral" />
    185 <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />
    186 </dependentAssembly>
    187 <dependentAssembly>
    188 <assemblyIdentity name="Microsoft.SharePoint.Library" publicKeyToken="71e9bce111e9429c" culture="neutral" />
    189 <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />
    190 </dependentAssembly>
    191 <dependentAssembly>
    192 <assemblyIdentity name="Microsoft.SharePoint.Security" publicKeyToken="71e9bce111e9429c" culture="neutral" />
    193 <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />
    194 </dependentAssembly>
    195 <probing privatePath="bin;_app_bin" />
    196 </assemblyBinding>
    197 </runtime>
    198 <location path="_layouts/images">
    199 <system.web>
    200 <authorization>
    201 <allow users="*" />
    202 </authorization>
    203 </system.web>
    204 </location>
    205 <location path="_layouts/mobile/mbllogin.aspx">
    206 <system.web>
    207 <authorization>
    208 <allow users="*" />
    209 </authorization>
    210 </system.web>
    211 </location>
    212 <System.Workflow.ComponentModel.WorkflowCompiler>
    213 <authorizedTypes>
    214 <authorizedType Assembly="System.Workflow.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.*" TypeName="*" Authorized="True" />
    215 <authorizedType Assembly="System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.*" TypeName="*" Authorized="True" />
    216 <authorizedType Assembly="System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.*" TypeName="*" Authorized="True" />
    217 <authorizedType Assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System*" TypeName="*" Authorized="True" />
    218 <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System*" TypeName="*" Authorized="True" />
    219 <authorizedType Assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System*" TypeName="*" Authorized="True" />
    220 <authorizedType Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Workflow" TypeName="SPWorkflowActivationProperties" Authorized="True" />
    221 <authorizedType Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Workflow" TypeName="SPWorkflowTaskProperties" Authorized="True" />
    222 <authorizedType Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Workflow" TypeName="SPWorkflowHistoryEventType" Authorized="True" />
    223 <authorizedType Assembly="Microsoft.SharePoint.WorkflowActions, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WorkflowActions" TypeName="*" Authorized="True" />
    224 </authorizedTypes>
    225 </System.Workflow.ComponentModel.WorkflowCompiler>
    226 </configuration>
      
      
Page 1 of 2 (21 items) 1 2 Next >