roles

What LDAP information could be persisted in my application?

Hello, Consider a classic LDAP usage for authentication and consequent calls to check if the user has rights to access an object accessible to groups "foo", "bar" and "baz". I am wondering if I am allowed to persist exact role names, i.e. "foo", "bar" and "baz" and then make CurrentUser.IsInRole("Foo") || CurrentUser.IsInRole("Bar") ...