Browse code

- test comparing domain part in username and realm relaxed.

Jan Janak authored on 01/02/2005 12:03:58
Showing 1 changed files
... ...
@@ -120,16 +120,6 @@ dig_err_t check_dig_cred(dig_cred_t* _c)
120 120
 	     /* Realm must be present */
121 121
 	if (_c->realm.s == 0)  res |= E_DIG_REALM;
122 122
 
123
-	     /* If there is a domain in username, it must be same
124
-	      * as realm
125
-	      */
126
-	if (_c->username.domain.len) {
127
-		if ((_c->username.domain.len != _c->realm.len) ||
128
-		    (strncasecmp(_c->username.domain.s, _c->realm.s, _c->realm.len))) {
129
-			res |= E_DIG_DOMAIN;
130
-		}
131
-	}
132
-
133 123
 	     /* Nonce that was used must be specified */
134 124
 	if (_c->nonce.s == 0) res |= E_DIG_NONCE;
135 125