Configuration of LDAP

YaST2 Developers Documentation: Configuration of LDAP |

functions files intro |  |
# Configuration of LDAP | `include/ldap/routines.ycp`
Helper routines for string manupulations
Jiri Suchomel <jsuchome@suse.cz>
# Imports Ldap # Local Functions get_cn (string dn) get_dn (string cn) get_new_dn (string cn, string dn) get_rdn (string dn) get_string (map object, string attr)
`local get_rdn (string dn) -> string`
  Get RDN (relative distinguished name) from dn Parameters:
  dn |
`local get_cn (string dn) -> string`
  Get first value from dn (don't have to be "cn") Parameters:
  dn |
`local get_dn (string cn) -> string`
  Create DN from cn by adding base config DN (Can't work in general cases!) Parameters:
  cn |
`local get_new_dn (string cn, string dn) -> string`
  Create new DN from DN by changing leading cn value (Can't work in general cases!) Parameters:
  cn |
  dn |
`local get_string (map object, string attr) -> string`
  Get string value of attribute from map. (Generaly, it is supposed to be list or string.) Parameters:
  object |
  attr |

YaST2 Developers Documentation |