import javax.security.auth.Subject;
import javax.security.auth.x500.X500Principal;
-import org.argeo.ArgeoException;
+import org.argeo.cms.CmsException;
import org.argeo.cms.CmsView;
import org.argeo.cms.auth.AuthConstants;
import org.argeo.cms.auth.CurrentUser;
else
return false;
} catch (InvalidNameException e) {
- throw new ArgeoException("User " + user + " has an unvalid dn: "
+ throw new CmsException("User " + user + " has an unvalid dn: "
+ userName, e);
}
}
|| last.getType().toLowerCase().equals(LdifName.cn.name()))
return (String) last.getValue();
else
- throw new ArgeoException("Cannot retrieve user uid, "
+ throw new CmsException("Cannot retrieve user uid, "
+ "non valid dn: " + dn);
}
}
return dname;
} catch (InvalidNameException e) {
- throw new ArgeoException("Unable to get domain name for " + dn, e);
+ throw new CmsException("Unable to get domain name for " + dn, e);
}
}
try {
return new LdapName(dn);
} catch (InvalidNameException e) {
- throw new ArgeoException("Cannot parse LDAP name " + dn, e);
+ throw new CmsException("Cannot parse LDAP name " + dn, e);
}
}
}
\ No newline at end of file