<pre> 77 if (STREQ(sym, "name")) { 78 if (is_valid_name(data->id->NAS_name)) { 79 return(tac_strdup(data->id->username)); 80 } 81 } </pre> This should not return username, it should return what it just checked on, NAS_name: <pre> 77 if (STREQ(sym, "name")) { 78 if (is_valid_name(data->id->NAS_name)) { 79 return(tac_strdup(data->id->NAS_name)); 80 } 81 } </pre>
77 if (STREQ(sym, "name")) { 78 if (is_valid_name(data->id->NAS_name)) { 79 return(tac_strdup(data->id->username)); 80 } 81 }This should not return username, it should return what it just checked on, NAS_name:
77 if (STREQ(sym, "name")) { 78 if (is_valid_name(data->id->NAS_name)) { 79 return(tac_strdup(data->id->NAS_name)); 80 } 81 }