/** * Check if a DistinguishedName is null or empty. * * @param dn The Dn to check * @return <code>true</code> if the Dn is null or empty, <code>false</code> * otherwise */ public static boolean isNullOrEmpty( Dn dn ) { return ( dn == null ) || dn.isEmpty(); }
/** * Check if a DistinguishedName is null or empty. * * @param dn The Dn to check * @return <code>true</code> if the Dn is null or empty, <code>false</code> * otherwise */ public static boolean isNullOrEmpty( Dn dn ) { return ( dn == null ) || dn.isEmpty(); }
/** * Check if a DistinguishedName is null or empty. * * @param dn The Dn to check * @return <code>true</code> if the Dn is null or empty, <code>false</code> * otherwise */ public static boolean isNullOrEmpty( Dn dn ) { return ( dn == null ) || dn.isEmpty(); }
/** * Check that the Dn is not null * * @param dn The Dn to check * @throws LdapException If teh Dn is null or empty */ private void checkDn( Dn dn ) throws LdapException { if ( ( dn == null ) || dn.isEmpty() ) { String message = I18n.err( I18n.ERR_12000_CANNOT_PROCESS_EMPTY_DN ); LOG.error( message ); throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, message ); } }
/** * Check that the Dn is not null * * @param dn The Dn to check * @throws LdapException If teh Dn is null or empty */ private void checkDn( Dn dn ) throws LdapException { if ( ( dn == null ) || dn.isEmpty() ) { String message = I18n.err( I18n.ERR_12000_CANNOT_PROCESS_EMPTY_DN ); LOG.error( message ); throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, message ); } }
if ( !base.isEmpty() )
if ( !base.isEmpty() )
if ( ( dn == null ) || ( dn.isEmpty() ) )
if ( ( dn == null ) || ( dn.isEmpty() ) )
if ( ( suffixDn == null ) || ( suffixDn.isEmpty() ) )
/** * Check if the current operation has a valid PrincipalDN or not. * * @param operation the operation type * @throws Exception */ private void checkAuthenticated( OperationContext operation ) throws LdapException { if ( operation.getSession().isAnonymous() && !directoryService.isAllowAnonymousAccess() && !operation.getDn().isEmpty() ) { String msg = I18n.err( I18n.ERR_5, operation.getName() ); LOG.error( msg ); throw new LdapNoPermissionException( msg ); } }
if ( referralConnection != null ) String referralSearchBase = url.getDn() != null && !url.getDn().isEmpty() ? url.getDn() .getName() : searchBase;
if ( ( suffixDn == null ) || ( suffixDn.isEmpty() ) )
boolean isBaseIsRoot = req.getBase().isEmpty();
String referralSearchBase = url.getDn() != null && !url.getDn().isEmpty() ? url.getDn().getName() : searchBase; String referralFilter = url.getFilter() != null && url.getFilter().length() == 0 ? url.getFilter()
result.setResultCode( ResultCodeEnum.SUCCESS ); if ( modDnRequest.getName().isEmpty() )
LOG.debug( "Handling modify dn request while ignoring referrals: {}", req ); if ( req.getName().isEmpty() )