Fix patching in non-ldap case
Merge pull request #1 from sroze/patch-1

Fix patching in non-ldap case