Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userdoc:tt_ldap_client [2013/10/25 13:52] abelbeck [Phone LDAP Directory CLI Scripts] |
userdoc:tt_ldap_client [2013/11/18 08:37] (current) abelbeck [Phone LDAP Directory CLI Scripts] |
||
---|---|---|---|
Line 90: | Line 90: | ||
In addition to the HTTPS CGI script described above, AstLinux also supports Command-Line-Interface (CLI) scripts to access LDAP directory data. By default the scripts are configured to access the LDAP server with anonymous access (possibly ' | In addition to the HTTPS CGI script described above, AstLinux also supports Command-Line-Interface (CLI) scripts to access LDAP directory data. By default the scripts are configured to access the LDAP server with anonymous access (possibly ' | ||
- | If the local LDAP Server is enabled and populated with a directory, the typical LDAP Client setting would be as follows: | + | !!Note: AstLinux 1.1.4 or later is required!! |
+ | If the local LDAP Server is enabled and populated with a directory, the typical LDAP Client setting to anonymously access via localhost is as follows: | ||
- | !!Note: AstLinux 1.1.4 or later is required!! | + | {{:userdoc: |
+ | \\ | ||
+ | \\ | ||
+ | **ldap-phone-num-lookup** | ||
- | **ldap-phone-name-lookup** | + | Usage: |
+ | |||
+ | Options: | ||
+ | -h, --help | ||
+ | -t, --tls Enable TLS using start_tls | ||
+ | -m, --match-num list Comma separated list to match number. Default: telephonenumber, | ||
+ | -o, --output-name list Comma separated list to display the name. Default: displayname, | ||
- | Usage: ldap-phone-name-lookup [--tls] name | + | By default the ' |
- | The 'name' | + | Standard output returns the first '' |
- | Standard | + | Use the optional '' |
+ | \\ | ||
+ | \\ | ||
+ | **ldap-phone-name-lookup** | ||
- | **ldap-phone-num-lookup** | + | Usage: |
+ | |||
+ | Options: | ||
+ | -h, --help | ||
+ | -t, --tls Enable TLS using start_tls | ||
+ | -m, --match-name list Comma separated list to match name. Default: cn, | ||
+ | -o, --output-num list Comma separated list to display numbers. Default: telephonenumber, | ||
- | Usage: ldap-phone-num-lookup [--tls] number | + | By default the ' |
- | The ' | + | Standard output returns |
- | Standard output returns | + | Use the optional |
==== Asterisk Usage Examples ==== | ==== Asterisk Usage Examples ==== | ||
Examples how the '' | Examples how the '' | ||
+ | |||
+ | **CallerID number lookup via LDAP and AstDB** | ||
+ | |||
+ | < | ||
+ | ; CallerID(num) lookup, first LDAP then AstDB | ||
+ | exten => s, | ||
+ | same => n,ExecIf($[ $[" | ||
+ | same => n, | ||
+ | same => n,ExecIf($[ $[" | ||
+ | same => n, | ||
+ | |||
+ | And in your incoming context put this line somewhere: | ||
+ | |||
+ | exten => s, | ||