Package org.apache.directory.shared.ldap.entry

Examples of org.apache.directory.shared.ldap.entry.DefaultEntry


        try
        {
            String cn = "entry-" + System.currentTimeMillis();
            DN dn = new DN( "cn=" + cn + "," + config.getBaseDn() );
            Entry entry = new DefaultEntry();
            entry.add( "objectclass", "person" );
            entry.add( "cn", cn );
            entry.add( "sn", cn );
            entry.setDn( dn );

            LOG.debug( "adding entry with dn: {}" + dn );
            connection.add( entry );
        }
        catch ( Exception e )
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.entry.DefaultEntry

Copyright © 2018 www.massapicom. 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.