quanah / net-ldapapi

The Net::LDAPapi Perl Module uses the OpenLDAP and Mozilla C api's to directly access and manipulate an LDAP v2 or LDAP v3 server.
8 stars 6 forks source link

listen_for_changes(): cookie file must exist even for first run scenario #22

Closed phillipod closed 9 years ago

phillipod commented 9 years ago

The listen_for_changes() function opens the cookie file and reads it. If the file does not exist, it warn()'s and does not proceed.

In the case of a first run, it's seems perfectly safe to allow the creation of the file if it does not exist. It's certainly much easier to use than having to create an empty file.

phillipod commented 9 years ago

Marking as invalid. I had a fatalised warn() handler installed.