ghenry has asked for the wisdom of the Perl Monks concerning the following question:

Dear guys,

Going to be doing a few custom things to help some users change their password in Samba PDC (LDAP backend) and I have picked CGI::Application for this, as the example is good and looks easy to drop in/swap the bits I need.

Do you think this is the right way to go?

They can of course just change their password via Ctrl-Alt-Del on Windows, but they have asked for a webpage to reset the password too.

Thanks.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!
  • Comment on Page for changing passwords in a Directory - CGI::Appplication - right way to go?

Replies are listed 'Best First'.
Re: Page for changing passwords in a Directory - CGI::Appplication - right way to go?
by jbrugger (Parson) on Jul 25, 2005 at 11:03 UTC
    Well, since 'they' asked for a webpage method too, and if you're comfortable to use CGI::Application, i'd say it is indeed the right way to go.
    I assume you're going to implement a module like Net::LDAP::Extension::SetPassword with it?

    "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

      Yes, exactly. I don't wish to reinvent the wheel here, just use existing stuff.

      I could use Webmin or Samba Console, but that would just blow their minds and I'd rather get something inplace now that I can just keep adding too.

      Should be fun.

      Walking the road to enlightenment... I found a penguin and a camel on the way.....
      Fancy a yourname@perl.me.uk? Just ask!!!

      I think CGI::Builder might be the better way to go.

      There's CGI::Application::Plus, which says to move on to the above.

      I'll have a play with both and see.

      Walking the road to enlightenment... I found a penguin and a camel on the way.....
      Fancy a yourname@perl.me.uk? Just ask!!!

        Might be a bad choice according to Merlyn.

        Walking the road to enlightenment... I found a penguin and a camel on the way.....
        Fancy a yourname@perl.me.uk? Just ask!!!
Re: Page for changing passwords in a Directory - CGI::Appplication - right way to go?
by puploki (Hermit) on Jul 25, 2005 at 09:40 UTC
    I've no experience directly with the CGI modules for doing this sort of thing, so my reply is a little off topic.

    I'm not sure what environment you're running in - we've done this, but have Windows/IIS servers to do the scripting on which possibly makes life easier (especially as we use a Windows 2003 domain rather than Samba PDC).

    Anyway, a good way to go it to use the Win32::AdminMisc module with the SetPassword() or UserChangePassword() calls.

    HTH, Loki