Menu

test for absent attribute

Help
2007-07-18
2013-04-23
  • Norbert Klasen

    Norbert Klasen - 2007-07-18

    Hi,
    how can I test, that an entry doesn't have a particular attribute?

    Norbert

     
    • Brent Kynaston

      Brent Kynaston - 2007-07-18

      You can validate that it doesn't have a particular attribute value by negating the results of the test like so:

      comment=This will validate that the CN does not contain "happyGillmore" operation=validateObject ExpectFailure=true cn=happyGillmore

      You can validate that the attribute doesn't contain a value at all by using asterisk:

      comment=This will validate that the description does not contain any value operation=validateObject ExpectFailure=true description=*

      Have fun!

      Brent

       

Log in to post a comment.