Pylons

Anonymous
Jan 4, 2010 2:28:40 PM

LSC configuration file

Language: YAML
Tags:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
connections:    #Defintion of the connections  
    ldap:   #name of this source
        type: ldap  #type of the source
        configuration:   #ldap specific configuration
            derefAliases: never #optionnal, JNDI specific => remove ?
            factory: com.sun.jndi.ldap.LdapCtxFactory #java.naming.factory.initial, optionnal, JNDI specific => remove ?
            version: 3  #optionnal
            referral: ignore         #java.naming.referral, optionnal
            authentification: simple #java.naming.security.authentication, optionnal
            pageSize: 10
            tls: true
        url: ldap://localhost:1390/dc=AD,dc=net
        username: cn=manager,dc=AD,dc=net #java.naming.security.principal
        password: secret    #java.naming.security.credentials
        
    database:
        type: database
        url: jdbc:hsqldb:file:hsqldb/lsc
        username: elilly
        password:
        configuration:
            driver: org.hsqldb.blabla
    
    #may be a part of this is the configuration of a CSV output, maybe not                 
    csv: 
        file: /tmp/log.csv
        operations: create, delete
        attrbiutes: cn;dn #was attrs
        separator: ;    #optionnal
        append: true    #optionnal
                
    ldif:
        file: /tmp/log.csv
        operations: create, delete
        append: false   #optionnal

tasks:  #definition of the tasks              
    task1:  #name of the task
        sources:    #configuration of the sources
            ldap:   #name of the connection
                service: org.lsc.jndi.SimpleJndiSrcService
                base dn: ou=group
                pivot attributes: dn, cn #old pivotAttrs
                fetched attributes: uid, mail, cn   #old attributes
                dn: >
                     'cn=' + srcBean.getAttributeValueById('uid') 
                filters:
                    global: (&(objectClass=inetOrgPerson)(uid=*))   #old filterAll           
                    identity: (&(objectClass=inetOrgPerson)(uid={uid})) #old filterId
        destinations:   #configuration of the destinations 
            csv:
            ldap:
                service: SimpleJndiDstService #we should only specify a class name and LSC will look in the correct packages, or if failed, try to find the classname
        conditions:
            create: 1 > 0
            update: >
                src.getAttr('updateTimeStamp') > dst.getAttr('updateTimeStamp') 
            #we rename srcBean and dstBean by src and dst
            delete: false
            modrdn: false
        action: (force|keep|merge)  #was K, F, M
        attributes:
            cn: #the name of the attribute
                create value: "something"
                default value: "nothing"
                force value: "blabla"

Download

Comments (0)

You must login before you can comment.

Powered by Pylons - Contact Administrators