newbie problem: using config manager

405 views
Skip to first unread message

Bernard Horan

unread,
May 6, 2011, 5:25:06 AM5/6/11
to pwm-general
All

first, let me thank whoever is contributing this code for what appears
to be a really nice piece of software.

I'm a member of the open wonderland open source project [1] and I'm
looking to use PWM as a self-registration front end to an openldap
LDAP service.

I've downloaded rev v1.5.3 and installed the WAR in glassfish where it
seems to run fine. The problem I have is that I don't see any button/
link to "finalize" my configuration. I'm guessing that this is because
my configuration doesn't work, but I have no insight as to why. I've
set up the LDAP service following the instructions and ldap access
from the command line seems to be fine.

I'm using as Mac as my test environment: using glassfish v2, and
Safari and Firefox browsers. I also tried installing the WAR in
tomcat6 on ubuntu 9 using VirtualBox, but had the same issue (plus a
FilePermission security problem).

Any thoughts/guidance? Or can anyone share with me a config file that
might work with this kind of set up?

Thanks in advance

Bernard
Senior Researcher, University of Essex, UK

[1] http://code.google.com/p/openwonderland/

Jason Rivard

unread,
May 6, 2011, 7:44:39 AM5/6/11
to pwm-general
Are you not seeing the ConfigManager at all?  After installation any access to /pwm should redirect to /pwm/config/ConfigManager where you can edit and finalize the configuration.  If you aren't seeing that, the installation is broken.

I haven't tested in glassfish, so it would be great if you would share any issues you find there.  As for tomcat, tomcats log directories should have some information for troubleshooting.  Please post any errors you see to this thread if you need more help.

Without error logs or a better description of whats happening in your browser, I can't help much.


--
You received this message because you are subscribed to the Google Groups "pwm-general" group.
To post to this group, send email to pwm-g...@googlegroups.com.
To unsubscribe from this group, send email to pwm-general...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pwm-general?hl=en.


Bernard Horan

unread,
May 9, 2011, 9:38:01 AM5/9/11
to pwm-general
Jason

thanks for the response.

The ConfigManager appears to work: I can change settings and save
them, the config file appears to be successfully written. There are no
errors or exceptions reported in the logs.

However, I can't find any button/link to finalize the config. At what
stage/page should I see it?

I uploaded a video of what appears in the browser: http://screencast.com/t/vAuqjJvs5f

many thanks

Bernard

Menno Pieters

unread,
May 9, 2011, 9:56:33 AM5/9/11
to pwm-g...@googlegroups.com
Bernard,

On Mon, May 9, 2011 at 3:38 PM, Bernard Horan <ber...@essex.ac.uk> wrote:
Jason

thanks for the response.

The ConfigManager appears to work: I can change settings and save
them, the config file appears to be successfully written. There are no
errors or exceptions reported in the logs.

However, I can't find any button/link to finalize the config. At what
stage/page should I see it?

I uploaded a video of what appears in the browser: http://screencast.com/t/vAuqjJvs5f

Your config manager looks a bit empty to me. It should contain a lot more links (see attached image).Schermafbeelding 2011-05-09 om 15.48.41.png
That includes the link you are looking for...

Actually, it looks like you have already finalized your configuration. The yellow bar at the top is missing:

Schermafbeelding 2011-05-09 om 15.54.23.png

Check <webapps-dir>/pwm/WEB-INF/PwmConfiguration.xml, whether the property "configIsEditable" is set to true or false:

...
  <properties>
    <property key="configIsEditable">true</property>
    <property key="configEpoch">79</property>
    <property key="settingsChecksum">C4E77E427078D8F26FF250D454A5A96F</property>
  </properties>
...

Best regards,

Menno Pieters

Schermafbeelding 2011-05-09 om 15.54.23.png
Schermafbeelding 2011-05-09 om 15.48.41.png

Jason Rivard

unread,
May 9, 2011, 9:59:22 AM5/9/11
to pwm-general
Nice with the screencam!

After saving the config the shot menu menno should be showing, but instead its returning you to the config editor screen.  Are you sure the config file is being written successfully?  Double check the trace log right when you save.  The menu after you save the config should show the finalize option.

If all else fails, try the latest build here: http://code.google.com/p/pwm/downloads/list

Theres some better error handling in that last build so hopefully it will tell you whats happening.

The thing that usually gets me is the PwmConfiguration.xml is set to read only, or is owned by root and not the tomcat user so pwm gets a permission error when it tries to save the config.

-jason
Schermafbeelding 2011-05-09 om 15.48.41.png
Schermafbeelding 2011-05-09 om 15.54.23.png

Bernard Horan

unread,
May 9, 2011, 10:48:51 AM5/9/11
to pwm-general
Jason

great! OK, your new build seems to work better, in as much that I now
get the screenshot above. The server didn't automatically restart when
I saved the configuration. However, it warned me that I should
restart, and so far it seems to be acting as advertised.

The log is at http://pastebin.com/8hYtf2TH (as you can see, the
exception appears to be because I didn't provide a valid email address
in the config)

Many thanks for your help with this. All that I need to do now is try
to figure out how to connect to the LDAP server I'm running!

cheers

Bernard

On May 9, 2:59 pm, Jason Rivard <jriv...@gmail.com> wrote:
> Nice with the screencam!
>
> After saving the config the shot menu menno should be showing, but instead
> its returning you to the config editor screen.  Are you sure the config file
> is being written successfully?  Double check the trace log right when you
> save.  The menu after you save the config should show the finalize option.
>
> If all else fails, try the latest build here:http://code.google.com/p/pwm/downloads/list
>
> Theres some better error handling in that last build so hopefully it will
> tell you whats happening.
>
> The thing that usually gets me is the PwmConfiguration.xml is set to read
> only, or is owned by root and not the tomcat user so pwm gets a permission
> error when it tries to save the config.
>
> -jason
>
> On Mon, May 9, 2011 at 9:56 AM, Menno Pieters <menno.piet...@gmail.com>wrote:
>
>
>
> > Bernard,
>
> > On Mon, May 9, 2011 at 3:38 PM, Bernard Horan <bern...@essex.ac.uk> wrote:
>
> >> Jason
>
> >> thanks for the response.
>
> >> The ConfigManager appears to work: I can change settings and save
> >> them, the config file appears to be successfully written. There are no
> >> errors or exceptions reported in the logs.
>
> >> However, I can't find any button/link to finalize the config. At what
> >> stage/page should I see it?
>
> >> I uploaded a video of what appears in the browser:
> >>http://screencast.com/t/vAuqjJvs5f
>
> > Your config manager looks a bit empty to me. It should contain a lot more
> > links (see attached image).[image: Schermafbeelding 2011-05-09 om
> > 15.48.41.png]
> > That includes the link you are looking for...
>
> > Actually, it looks like you have already finalized your configuration. The
> > yellow bar at the top is missing:
>
> > [image: Schermafbeelding 2011-05-09 om 15.54.23.png]
>
> > Check <webapps-dir>/pwm/WEB-INF/PwmConfiguration.xml, whether the property
> > "configIsEditable" is set to true or false:
>
> > ...
> >   <properties>
> >     <property key="*configIsEditable*">*true*</property>
>  Schermafbeelding 2011-05-09 om 15.48.41.png
> 65KViewDownload
>
>  Schermafbeelding 2011-05-09 om 15.54.23.png
> 26KViewDownload
Reply all
Reply to author
Forward
0 new messages