Make directory server protocol configurable