r24074: Test both permitted logon hours and permitted workstations in the
[samba.git] / source4 / auth / sam.c
index 2fb0a239ff4fd01ce23f3f8f1197dd2eb915a9fd..6e160941d8684b7028eb99f73497aae0028a9f30 100644 (file)
@@ -46,7 +46,6 @@ const char *user_attrs[] = {
        "pwdLastSet",
        "accountExpires",
        "logonHours",
-       
        "objectSid",
 
        /* check 'allowed workstations' */
@@ -213,7 +212,7 @@ _PUBLIC_ NTSTATUS authsam_account_ok(TALLOC_CTX *mem_ctx,
                        DEBUG(10,("sam_account_ok: checking for workstation match '%s' and '%s'\n",
                                  workstations[i], logon_workstation));
 
-                       if (strequal(workstations[i], logon_workstation) == 0) {
+                       if (strequal(workstations[i], logon_workstation)) {
                                invalid_ws = False;
                                break;
                        }