+ Reply to Thread
Results 1 to 8 of 8

Thread: How-to to add group restrictions in 1.8.3 rev 7662

  1. #1
    Join Date
    Nov 2007
    Posts
    10

    Default How-to to add group restrictions in 1.8.3 rev 7662

    How do you restrict access to pages for a group.

    I have tried just the group name, »test ... I cant get it to add the group...

    It says:

    Groups are prefixed with '»'
    This is not a valid user.

    I have a group setup with the Group Name 'Test' and it associates users with this group when they login. LDAP provider is active directory.

    Am I doing somthing wrong or is the group restrictions not completed in the trunk?

  2. #2
    Join Date
    Feb 2007
    Posts
    1,871

    Default

    Don't type the special character, just type the group name. The » character is only used to differentiate usernames and groups. The autocomplete will show you the groups; click the group.

  3. #3
    Join Date
    Nov 2007
    Posts
    10

    Default

    I have setup a test site at http://deki.selfip.com:81 . See if you can get it to work

    Login on AD with : dekiwiki
    password: password

    I have setup the groups 'test' and 'test2'.

    dekiwiki is in the group 'test2' group 'test2' has been added to the role 'Admin'

  4. #4
    Join Date
    Feb 2007
    Posts
    1,871

    Default

    you have outdated bits, look at the exception thrown for http://deki.selfip.com:81/@api/deki/groups

    Code:
    <exception><type>System.ArgumentException</type><message>Parameter '?groupnamefilter' not found in the collection.</message><source>MySql.Data</source><stacktrace><frame>MySql.Data.MySqlClient.MySqlParameterCollection.GetParameter (System.String parameterName) [0x00000]</frame><frame>MySql.Data.MySqlClient.MySqlParameterCollection.get_Item (System.String name) [0x00000]</frame><frame>(wrapper remoting-invoke-with-check) MySql.Data.MySqlClient.MySqlParameterCollection<line>:get_Item (string)</line></frame><frame>MySql.Data.MySqlClient.StoredProcedure.Resolve () [0x00000]</frame><frame>MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior behavior) [0x00000]</frame><frame>MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader (CommandBehavior behavior) [0x00000]</frame><frame>System.Data.Common.DbCommand.ExecuteReader () [0x00000]</frame><frame>System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader () [0x00000]</frame><frame>MindTouch.Data.DataCommand.Execute (System.Action`1 handler) [0x00000]</frame></stacktrace></exception>

  5. #5
    Join Date
    Nov 2007
    Posts
    10

    Default How I set it up

    I ran a SVN checkout with TorttoiseSVN on https://dekiwiki.svn.sourceforge.net...wiki/trunk/web

    and then installed...

    Did I do somthing wrong.

  6. #6
    Join Date
    Feb 2007
    Posts
    1,871

    Default

    You need to rebuild the C# bits (Dekihost) - we commit binaries to SVN, but they are only rebuilt when we issue a release.

  7. #7
    Join Date
    Nov 2007
    Posts
    10

    Default

    Downloaded the src and compiled it with vs.net 2005 and placed the new dll's/files in the web bin dir. Restarted dekihost. Now I get the autocomplete groups. But when I click 'add user or group', i still get 'This is not a valid user'.

    Thank you for your help.

  8. #8
    Join Date
    Feb 2007
    Posts
    1,871

    Default

    PHP attempts to validate the group, but your API seems to be throwing this error: http://deki.selfip.com:81/@api/deki/groups/=test

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts