summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b89cf45)
raw | patch | inline | side by side (parent: b89cf45)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Sep 2007 09:55:39 +0000 (09:55 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Sep 2007 09:55:39 +0000 (09:55 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7251 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/samba/class_sambaAccount.inc | patch | blob | history |
diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc
index 5375aeeeb6dd41a2783d2a3591034503d459ba43..8421e659d059f591381633db441f5dd35695d14e 100644 (file)
/* Force password set, if this account doesn't have any samba passwords */
function password_change_needed()
{
- $ldap = $this->config->get_ldap_link();
- $ldap->cat($this->dn,array("sambaLMPassword","sambaNTPassword"));
- $attrs = $ldap->fetch();
- if(!isset($attrs['sambaLMPassword']) || !isset($attrs['sambaNTPassword'])){
- return(TRUE);
+ if(!$this->initially_was_account && $this->is_account){
+ $ldap = $this->config->get_ldap_link();
+ $ldap->cat($this->dn,array("sambaLMPassword","sambaNTPassword"));
+ $attrs = $ldap->fetch();
+ if(!isset($attrs['sambaLMPassword']) || !isset($attrs['sambaNTPassword'])){
+ return(TRUE);
+ }
}
return(FALSE);
}