Skip to content
Browse files

Stable Version.

git-svn-id: http://svn.php.net/repository/pear/packages/File_SMBPasswd/trunk@154571 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 3e09eb1 commit 8cec37816f0062664034ab0385e9a9781041c010 Michael Bretterklieber committed Mar 25, 2004
Showing with 25 additions and 13 deletions.
  1. +6 −6 SMBPasswd.php
  2. +19 −7 package.xml
View
12 SMBPasswd.php
@@ -108,9 +108,9 @@ class File_SMBPasswd extends PEAR {
function File_SMBPasswd($file = 'smbpasswd')
{
$this->file = $file;
- $this->cryptEngine = new Crypt_MSCHAPv1;
+ $this->cryptEngine = new Crypt_CHAP_MSv1;
}
-
+
/**
* Load the given smbpasswd file
*
@@ -343,13 +343,13 @@ function modUser($user, $userid = '', $pass = '', $comment = '', $flags = '')
* @return mixed returns PEAR_Error, if the user doesn't exists
* @access public
*/
- function delAccount($user)
+ function delAccount($name)
{
- if (isset($this->accounts[$user])) {
- unset($this->accounts[$user]);
+ if (isset($this->accounts[$name])) {
+ unset($this->accounts[$name]);
return true;
} else {
- return $this->raiseError( "Couldn't delete user '$user', because the user doesn't exists!") ;
+ return $this->raiseError( "Couldn't delete account '$name', because the account doesn't exists!") ;
}
}
View
26 package.xml
@@ -17,14 +17,15 @@
<license>BSD</license>
<release>
- <version>0.9.0</version>
- <date>2003-05-02</date>
- <state>beta</state>
- <notes>
+ <version>1.0.0</version>
+ <date>2004-03-25</date>
+ <state>stable</state>
+ <notes>
<![CDATA[
-* Inital release
+* Stable version released
]]>
- </notes>
+ </notes>
+ </release>
<filelist>
<dir name="/" baseinstalldir="File">
@@ -38,12 +39,23 @@
</release>
<deps>
- <dep type="pkg" rel="ge" version="0.8.5">Crypt_CHAP</dep>
+ <dep type="pkg" rel="ge" version="1.0.0">Crypt_CHAP</dep>
<dep type="ext" rel="has">mhash</dep>
</deps>
<changelog>
<release>
+ <version>1.0.0</version>
+ <date>2004-03-25</date>
+ <state>stable</state>
+ <notes>
+<![CDATA[
+* Stable version released
+]]>
+ </notes>
+ </release>
+
+ <release>
<version>0.9.0</version>
<date>2003-05-02</date>
<state>beta</state>

0 comments on commit 8cec378

Please sign in to comment.
Something went wrong with that request. Please try again.