summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 160cbae)
raw | patch | inline | side by side (parent: 160cbae)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Jul 2010 14:27:21 +0000 (14:27 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Jul 2010 14:27:21 +0000 (14:27 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19043 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index d2340c80db327d90c47d760d9b34c410316994b9..7915adc15eb262eee104e87a90246be508bdc5eb 100644 (file)
// Not for groups
if ($mode == 0){
- // Create SMB Password
- $attrs= generate_smb_nt_hash($password);
- if ($shadow != 0){
- $attrs['shadowLastChange']= $shadow;
- }
+ $tmp = $config->get_cfg_value('core','sambaHashHook');
+ if(!empty($tmp)){
+
+ // Create SMB Password
+ $attrs= generate_smb_nt_hash($password);
+
+ if ($shadow != 0){
+ $attrs['shadowLastChange']= $shadow;
+ }
+ }
}
$attrs['userPassword']= array();