previousFile_SMBPasswd::addMachine() (Previous) (Next) File_SMBPasswd::modAccount()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_SMBPasswd::modAccountEncrypted()

File_SMBPasswd::modAccountEncrypted() – Modifie un compte existant avec le mot de passe crypté fourni

Synopsis

mixed File_SMBPasswd::modAccountEncrypted ( string $user , int $userid , string $nthash = '' , string $lmhash = '' , string $comment = '' , string $flags = '' )

Description

Modifie un compte existant en utilisant un mot de passe pré-crypté.

Parameter

  • string $user - nom d'utilisateur à ajouter

  • int $userid - userid de l'utilisateur

  • string $nthash - nouveau NT-Hash

  • string $lmhash - nouveau LM-Hash

  • string $comment - commentaire

  • string $flags - flags

Return value

mixed - Returns TRUE on success, PEAR_Error on failure.

Note

This function can not be called statically.

Notez que l'utilisateur à ajouter doit déjà exister dans le fichier des mots de passe système.

Example

Exemple avec File_SMBPasswd::modAccountEncrypted()

<?php
require_once 'File/SMBPasswd.php';

// modification de l'utilisateur mbretter
$fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
$fh->load();
$status $fh->modAccountEncrypted(
    
'mbretter',
    
1005,
    
'75BA30198E6D1975AAD3B435B51404EE',
    
'FC156AF7EDCD6C0EDDE3337D427F4EAC',
    
Michaela Bretterklieber);
if (
PEAR::isError($status)) {
    
// gestion des erreurs
} else {
    
$fh->save();
}

?>
previousFile_SMBPasswd::addMachine() (Previous) (Next) File_SMBPasswd::modAccount()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.