Using perl to access CIFS
By makeaweli
- 1 minutes read - 164 wordsThis perl module allows for the connection and maniputlation of windows CIFS shares using samba’s smbclient.
Installing using CPAN
installing Filesys-SmbClientParser using cpan fails upon make test. Not good.
Manual install
Download file from cpan.org and run perl Makefile.PL. You will be prompted if you want to test the build with server, username and password information. It still fails.
Correct bad makefile
The make tests fail because the author of the module has hard-coded the paths of where to find the smbclient binary: /usr/bin, /usr/local/bin, /opt/bin or /usr/local/samba/bin/. Smbclient was installed using blastwave csw, ‘/opt/csw/bin/smbclient’.
Create a symbolic link in one of the expected paths:
Running ‘make test’ will now be successful.
Copy certificate revocation lists to public webserver
In order for our certificate server to work properly, we need to periodically update the directory http://www.gemini.edu/repository/” with two certicate revocation list files.
Since the server that creates the files is Windows based, the following perl script was used and run every hour in cron: