RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > Plug-Ins

For more information about the ads and why they're here, please see the FAQ
Reply
  #21  
Old 10-04-2006, 09:01 PM
Registered User
 
Join Date: Sep 2006
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Quote:
Originally Posted by Heritz
Yeah, but I just made a plugin for cPanel installations since cPanel installations store all the passwords in different directories.
Are you willing to share to sahre this plugin? There alot of cpanel people outthere that are interested in this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22  
Old 10-04-2006, 11:20 PM
Registered User
 
Join Date: Aug 2006
Posts: 58
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Yes, I will publish the plugin. I am trying to find the best way to make it "easy" to install.
__________________
Heritz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23  
Old 10-05-2006, 01:21 AM
Registered User
 
Join Date: Aug 2006
Posts: 58
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Do you guys know how to generate a unix patch file? I mean, those with lots of ++++++++++ and stuff? Would be easier for me to generate a patch file like that.

The cPanel patch is very similar to the "pretty change password" patch published in this forum, there is just a difference in the core files.
__________________
Heritz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24  
Old 10-05-2006, 03:28 AM
Registered User
 
Join Date: Sep 2006
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Quote:
Originally Posted by Heritz
Do you guys know how to generate a unix patch file? I mean, those with lots of ++++++++++ and stuff? Would be easier for me to generate a patch file like that.

The cPanel patch is very similar to the "pretty change password" patch published in this forum, there is just a difference in the core files.
Personally I think the way go to is provide the modified files plus instructions of where these need to be uploaded to. Or to provide a patched version where user only has to change thier config files. thanks..that my2cents
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25  
Old 10-05-2006, 03:54 AM
Registered User
 
Join Date: Aug 2006
Posts: 58
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Ok, perfect. Working on it.
__________________
Heritz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26  
Old 10-05-2006, 11:15 AM
Registered User
 
Join Date: Sep 2006
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Quote:
Originally Posted by Heritz
Ok, perfect. Working on it.
waiting anxiously for this mode..after the remote email account creation mod this is the mod that has been missing in RC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27  
Old 10-05-2006, 01:33 PM
Registered User
 
Join Date: Aug 2006
Posts: 58
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Do you have SSH access to your cPanel server? can you please check if you have this file in your server?

/usr/local/cpanel/base/dowebmailpasswd.cgi

This file comes with all the cPanel installations. And its needed to install the plugin. I just want to be sure if you have it as I do.
__________________
Heritz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28  
Old 10-05-2006, 10:19 PM
Registered User
 
Join Date: Sep 2006
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Quote:
Originally Posted by Heritz
Do you have SSH access to your cPanel server? can you please check if you have this file in your server?

/usr/local/cpanel/base/dowebmailpasswd.cgi

This file comes with all the cPanel installations. And its needed to install the plugin. I just want to be sure if you have it as I do.
I am hosted on site5 with a shared server and I could not find the file in sitemanager or by ftp. I have requested shell access but I have no idea how to use that thing. However I have a piece of code that might be help you write this plugin for even those that do not have shell access.It works by logining into cpanel and then changing password and closing file. It can be amde to redirect to inbox or wherever.
Changepass.php-- just a form.
Code:
<?php //changepass.php?>

<style type="text/css"> 
td
{ 
color: #014D5F;
} 
</style>
<table cellpadding="2" cellspacing="2" border="0" align="center">
<tr><td> Change Password</td></tr>

</table>
<form name="emsignup" method="POST" action="cppass.php" autocomplete="off">
<table cellpadding="5" cellspacing="2" border="0" align="center">

</td>
</tr> 
<tr>
<td bgcolor="#DDDDDD">User Name: </td><td bgcolor="#DDDDDD"><input type="text" name="NewEmail"> </td>
</tr>
<tr>
<td bgcolor="#DDDDDD">New Password: </td><td bgcolor="#DDDDDD"><input type="text" name="Password"></td>
</tr>

<tr>
<td colspan="2"><input type="submit" value="Change" class="button"></td>
</tr>
</table>

</form>
The guts:
Code:
 cppass.php
<?php
//cppass.php


// cPanel info
$cpuser = 'username'; // cPanel username
$cppass = 'password'; // cPanel password
$cpdomain = 'domain.com'; // cPanel domain or IP
$cpskin = 'skin'; // cPanel skin. Mostly x or x2, na4 etc
$edomain = 'domain.com'; // email domain (usually same as cPanel domain above)


$euser = $_POST['NewEmail'];
$epass = $_POST['Password'];
if ( $euser == "" OR $epass == "" ) {
	$ermsg = "All fields of the form must be completed.";
}


############################################################### 
# END OF SETTINGS
############################################################### 





// change password of entered email account
$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/poppasswordchanged.html?email=$euser&domain=$edomain&password=$epass", "r");

// note the 'poppasswordchanged.html' changes depending on your cp version

if (!$f) {
 die('Cannot change password. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode');
}

// Check result
while (!feof ($f)) {
 $line = fgets ($f, 1024);
 if (ereg ("already exists!", $line, $out)) {
  die('Such email account already exists.');
 }
}
fclose($f);

echo "Password for $euser@$edomain has been changed to $epass.";

?>
I think finding a way to include this in RC will make it much easier tha SSH or telnet. On the pretty password change they have a file called password.inc in program/steps/settings/passwd.inc , where I think you can incorprate this code. Just get username and domain from RC and have user enter new password log them into cp and change their password and redirect to inbox or back to settings.

Now if only I coud do that
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29  
Old 10-06-2006, 01:45 AM
Registered User
 
Join Date: Aug 2006
Posts: 58
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Yes bro, actually my patch does what you said, but mine doesn't use the poppasswordchanged.html. Mine use a CGI script that all the cPanel installations have.

I made it using CURL and it works basically like you said. I took the program/steps/settings/passwd.inc and I changed it to make it work using the CGI script.

You wont need SSH access or something to use this patch. Its completely friendly and there is no "avanced" knowledge requirements.

I am creating a package for this. I will make a new thread as soon as I have everything set up.
__________________
Heritz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30  
Old 10-06-2006, 03:37 AM
Registered User
 
Join Date: Sep 2006
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change /etc/shadow password interest?

Quote:
Originally Posted by Heritz
Yes bro, actually my patch does what you said, but mine doesn't use the poppasswordchanged.html. Mine use a CGI script that all the cPanel installations have.

I made it using CURL and it works basically like you said. I took the program/steps/settings/passwd.inc and I changed it to make it work using the CGI script.

You wont need SSH access or something to use this patch. Its completely friendly and there is no "avanced" knowledge requirements.

I am creating a package for this. I will make a new thread as soon as I have everything set up.
oh ok thanks will be anxiously waiting for this mod
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 06:50 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community