[#7406] factor out some ldap helper functions
[#7406] factor out some ldap helper functions

apache/allura,lym/allura-git,lym/allura-git,heiths/allura,apache/allura,apache/allura,heiths/allura,apache/allura,apache/allura,heiths/allura,lym/allura-git,heiths/allura,lym/allura-git,heiths/allura,lym/allura-git