Issue
How can I add multiple entries in Local Routing Table?
Solution
Use the "dir importldif <root-suffix>"command to create multiple entries in local routing table. Â The local routing table is effectively an internal LDAP server, and as such LDIF formatted text is used to represent the data. The default root suffix is "o=miratop"; ensure this is your root suffix if you are going to follow the commands below.
Example:
CLI> dir importldif o=miratop "c"
Enter LDIF directory data, finish with '.' on a line by itself:
dn: miDomainName=test1.com, ou=domains, o=miratop
objectclass: miDomain
midomainname: test1.com
dn: mail=u1@test1.com, miDomainName=test1.com, ou=domains, o=miratop
cn: u1@test1.com
objectclass: mirapointUser
objectclass: mirapointMailUser
mail: u1@test1.com
mailhost: mail.test1.com
mailroutingaddress: u1@mail.test1.com
dn: miDomainName=test2.com, ou=domains, o=miratop
objectclass: miDomain
midomainname: test2.com
dn: mail=u2@test2.com, miDomainName=test2.com, ou=domains, o=miratop
cn: u2@test2.com
objectclass: mirapointUser
objectclass: mirapointMailUser
mail: u2@test2.com
mailhost: mail.test2.com
mailroutingaddress: u2@mail.test2.com
dn: miDomainName=test3.com, ou=domains, o=miratop
objectclass: miDomain
midomainname: test3.com
dn: mail=u3@test3.com, miDomainName=test3.com, ou=domains, o=miratop
cn: u3@test3.com
objectclass: mirapointUser
objectclass: mirapointMailUser
mail: u3@test3.com
mailhost: mail.test3.com
mailroutingaddress: u3@mail.test3.com
.
OK Completed
If you have these entries defined in a separate ldif file (for e.g data.ldif), then you can import this file. For example:
CLI> dir importldif o=miratop "c" ftp://host.company.com/data.ldif
Note: You can use http instead of ftp for the URL for the LDIF file.
Comments
0 comments
Please sign in to leave a comment.