Quantcast
Channel: THWACK: All Content - Serv-U FTP Server & MFT Server
Viewing all articles
Browse latest Browse all 659

Parsing Serv-U's insane configuration file

$
0
0

We're in a dire need to automate some changes to Serv-U.

Solarwinds have confirmed that they don't have any plans for a command line tool except through long-term enhancements.

 

I've taken it upon myself to write a ruby script to parse the Serv-U.Archive into something sane with the long-term goal to write out config files (or at least make additions to config files)

 

Here is an example output of the script showing some LDAP Groups:

[root@SERVER ~]# ./ServUConfig.rb Serv-U.Archive dump | grep GroupName

new CRhinoStringAttr GroupName(1, 1, Val("Default Group Template",))

new CRhinoStringAttr GroupName(1, 1, Val("Default LDAP User Group",))

new CRhinoStringAttr GroupName(1, 1, Val("org",))

new CRhinoStringAttr GroupName(1, 1, Val("org.XX",))

new CRhinoStringAttr GroupName(1, 1, Val("org.XX.Groups",))

new CRhinoStringAttr GroupName(1, 1, Val("org.XX.Groups.FTP",))

new CRhinoStringAttr GroupName(1, 1, Val("org.XX.Groups.FTP.Internal",))

new CRhinoStringAttr GroupName(1, 1, Val("org.XX.Groups.FTP.HTTPS File Sharing",))

new CRhinoStringAttr GroupName(1, 1, Val("org.XX.Groups.FTP.Internal.FTP Internal XXX READ",))

new CRhinoStringAttr GroupName(1, 1, Val("org.XX.Groups.FTP.Internal.FTP Internal XXX WRITE",))

 

I'll keep posting new versions as it progresses. It just dumps the settings out in the guessed intended format for now.

 

Please Solarwinds, drop this obnoxious configuration file format!


Viewing all articles
Browse latest Browse all 659

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>