Examples of LdapDataAccessException


Examples of org.acegisecurity.ldap.LdapDataAccessException

        try {
            Weblogger roller = WebloggerFactory.getWeblogger();
            UserManager umgr = roller.getUserManager();
            userData = umgr.getUserByUserName(userDetails.getUsername(), Boolean.TRUE);
        } catch (WebloggerException ex) {
            throw new LdapDataAccessException("ERROR in user lookup", ex);
        }

        if (userData == null) {
            throw new LdapDataAccessException("ERROR no user: " + userDetails.getUsername());
        }

        int roleCount = userData.getRoles().size();
        if (defaultRole != null) roleCount++;
        GrantedAuthority[] authorities = new GrantedAuthorityImpl[roleCount];
View Full Code Here

Examples of org.acegisecurity.ldap.LdapDataAccessException

        MessageDigest sha;

        try {
            sha = MessageDigest.getInstance("SHA");
        } catch (java.security.NoSuchAlgorithmException e) {
            throw new LdapDataAccessException("No SHA implementation available!", e);
        }

        sha.update(rawPass.getBytes());

        if (salt != null) {
View Full Code Here

Examples of org.acegisecurity.providers.ldap.LdapDataAccessException

                    addAttributeValuesToRoleSet(roleAttribute, userRoles);
                }
            }
        } catch (NamingException e) {
            throw new LdapDataAccessException("Group search failed for user " + userDn, e);
        } finally {
            LdapUtils.closeContext(ctx);
        }

        if (logger.isDebugEnabled()) {
View Full Code Here

Examples of org.acegisecurity.providers.ldap.LdapDataAccessException

                } else {
                    logger.warn("Non-String value found for role attribute " + roleAttribute.getID());
                }
            }
        } catch(NamingException ne) {
            throw new LdapDataAccessException("Error retrieving values for role attribute " +
                    roleAttribute.getID(), ne);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.