[sork] Tls support in ldap

Eric Rostetter eric.rostetter at physics.utexas.edu
Tue Feb 25 18:20:52 PST 2003


Quoting tarjei+a_lists.phpgw at nu.no:

Added what seemed relevant of this patch to CVS HEAD.  Please let me know
if there are problems.

Not sure why/how smbpasswd code got into your patch...

> 36a37,38
> >         $this->_params['tls']     = array_key_exists('tls', $params)     ?
> $params['tls'] : null;
> >
> 53c55,59
> <
> ---
> > 	if (ldap_set_option($this->_ds, LDAP_OPT_PROTOCOL_VERSION, 3) &&
> $this->_params['tls']) {
> >  	    if (!ldap_start_tls($this->_ds)) {
> > 	      return PEAR::raiseError(_("Ldap_start_tls failed "));
> >   	    }
> > 				}
> 134c140
> <                 return PEAR::raiseError(_("Incorect Password"));
> ---
> >                 return PEAR::raiseError(_("Incorect Password, or dn
> $userdn"));
> 137a144,150
> >        $smbcrypt = '/usr/local/bin/mkntpwd';
> >        $command = @$smbcrypt ." ".  escapeshellarg($newPassword);
> >        $smbpasswd = exec($command);
> >        $smbpasswd = explode(':',$smbpasswd);
> >        $newDetails['ntPassword'] = $smbpasswd[1];
> >        $newDetails['lmPassword'] = $smbpasswd[0];

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the sork mailing list