ACC SHELL
/**
* File:
* ldap_conf.scr
* Summary:
* SCR Agent for reading/writing /etc/ldap.conf using the ini-agent
* Access:
* read/write
* Authors:
* Petr Blahos <pblahos@suse.cz>
* See:
* yast2-agent-ini
* libscr
* man ldap.conf
* Example:
* Dir(.etc.ldap_conf.v."/etc/ldap.conf")
* (["base", "host"])
**
* Read(.etc.ldap_conf.v."/etc/ldap/conf".host)
* ("10.10.0.149")
**
* Write(.etc.ldap_conf.v."/etc/ldap/conf".base, "dc=myodmain, dc=com")
* (true)
*
* $Id: ldap_conf.scr 15953 2004-03-10 13:42:23Z jsuchome $
*
* .etc.ldap_conf
*/
.etc.ldap_conf
`ag_ini(
`IniAgent(
[ "/etc/ldap.conf", "/etc/openldap/ldap.conf" ],
$[ "options" : ["global_values", "repeat_names"],
"comments" : [ "^#.*", "^[ \t]*$", ],
"params" : [
$[ "match" : [ "^[ \t]*([a-zA-Z0-9_]+)[ \t]+(.*[^ \t]|)[ \t]*$",
"%s\t%s",
]
]
]
]))
ACC SHELL 2018