Examples of LdapChangeException


Examples of org.cfcc.LdapChangeException

            mods[1] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, slchanged);

            ctx.modifyAttributes(last_dn + "," + search_base, mods);
            ctx.close();
        } catch (AttributeModificationException e) {
            throw new LdapChangeException(last_dn, "Unable to change password");
        } catch (NamingException e) {
            Logger.getLogger(Ldap.class.getName()).log(Level.SEVERE, "Naming error at LDAP server", e);
            throw new LdapChangeException(last_dn, "Naming error connecting to LDAP server");
        }
    }
View Full Code Here

Examples of org.cfcc.LdapChangeException

             * (WILL_NOT_PERFORM), data 0
             */
        } catch (javax.naming.OperationNotSupportedException ex) {
            throw new PasswordConstraintException(ex);
        } catch (UnsupportedEncodingException ex) {
            throw new LdapChangeException(last_dn, "Error setting password on Active Directory server [" + ex + "]");
        } catch (NamingException ex) {
            // ex.printStackTrace();
            throw new LdapChangeException(last_dn, "Naming error connecting to Active Directory server [" + ex + "]");
        }
    }
View Full Code Here

Examples of org.cfcc.LdapChangeException

                        DirContext.REPLACE_ATTRIBUTE,
                        attrs);
            }
            ctx.close();
        } catch (AttributeModificationException e) {
            throw new LdapChangeException(last_dn, "Unable to add employee type");
        } catch (NamingException e) {
            throw new LdapChangeException(last_dn, "Naming exception");
        }
    }
View Full Code Here

Examples of org.cfcc.LdapChangeException

                        DirContext.REPLACE_ATTRIBUTE,
                        attrs);
            }
            ctx.close();
        } catch (AttributeModificationException e) {
            throw new LdapChangeException(last_dn, "Unable to update to posixAccount: " + e);
        } catch (NamingException e) {
            throw new LdapChangeException(last_dn, "Naming exception: " + e);
        } catch (NumberFormatException e) {
            throw new LdapChangeException(last_dn, "Person ID is NULL: " + e);
        }
    }
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.