05-18-2010
UNIX Script to query Active Directory: give cn (NT login name) and receive mail (Email address)
Hi folks
I need to write UNIX script (with ldapsearch) to query Active Directory. Input is NT login name and output is Email address.
Attached a screenshot of Sysinternals "AD Explorer". I need to do the same in CLI.
I am absolute LDAP/ldapsearch noob.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am not sure if it is a good question or not.
Is there a unix utility which can be configured with exchange server and then receive e-mails?
Thanks! (4 Replies)
Discussion started by: DejaVu
4 Replies
2. Shell Programming and Scripting
Hi guys,
I have a question about the returning message of the mailx command.
if I run a mailx command, how can I know if the email has been sent to the email address? If the email address doesn't exist, is there any error message returned? If yes, how can I get the error message?
Thanks... (3 Replies)
Discussion started by: sheenshine
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
First post!
I have just discovered that I can use unix to send mail to a mail address. I normally use entourage for my mail.
This unix mail is very intriguing to me, but something is not working... I tried the search, but could not find the answer...
This works:
(in terminal)... (1 Reply)
Discussion started by: bjorn
1 Replies
4. Shell Programming and Scripting
Hi All,
I have sent a mail to my gmail id using the below command.
echo " " | mailx -s "sub" myid@gmail.com
I didn't get any error notification. But still I didn't receive that mail still..
please help me to learn how to send mail to other provider (Yahoo/gmail) from unix server.... (1 Reply)
Discussion started by: little_wonder
1 Replies
5. Shell Programming and Scripting
well, I have a script with this code inside:
nohup /usr/sbin/auditstream | /usr/sbin/auditselect -m -e "event== USER_Create || event== USER_Remove || event== USER_Change || event== GROUP_Create || event== GROUP_Remove || event== GROUP_Change || event== PASSWORD_Change " | /usr/sbin/auditpr -h... (4 Replies)
Discussion started by: iga3725
4 Replies
6. Red Hat
Just having trouble trying to figure out what the option is.
When I do
mail -s "Subject" someuser@example.com
I can't seem to specify "from" or "sender" option as I need it for my task. I tried using --f or -f though it didn't work.
Can someone please tell me what other option... (0 Replies)
Discussion started by: rockf1bull
0 Replies
7. Shell Programming and Scripting
Hi expert
I wish to start a shell script when I receive an email.
I modified the aliases file and I add this string
as400nag: "|/home/nag-script/startstop/AS400-Boot.sh
The solution works .
When the as400nag user receive an email the
/home/nag-script/startstop/AS400-Boot.sh starts .but... (3 Replies)
Discussion started by: emi65
3 Replies
8. Proxy Server
Hi,
is that possible to login to solaris 11.1 authenticate with windows active directory? the user id is created in the windows active directory.
Environment:
Solaris 11.1
Windows 2012 Active Directory (3 Replies)
Discussion started by: freshmeat
3 Replies
9. Forum Support Area for Unregistered Users & Account Problems
Neo
Thanks for your reply to my original post, entitled "Problem changing the email address associated with my unix.com account".
I am unable to reply to you in that thread, as I am unable to log-on to unix.com!
From what you said about purging dormant accounts, it is likely that my account... (1 Reply)
Discussion started by: irb
1 Replies
LEARN ABOUT CENTOS
ocf_heartbeat_slapd
OCF_HEARTBEAT_SLAPD(7) OCF resource agents OCF_HEARTBEAT_SLAPD(7)
NAME
ocf_heartbeat_slapd - Manages a Stand-alone LDAP Daemon (slapd) instance
SYNOPSIS
slapd [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Resource script for Stand-alone LDAP Daemon (slapd). It manages a slapd instance as an OCF resource.
SUPPORTED PARAMETERS
slapd
Full path to the slapd binary. For example, "/usr/sbin/slapd".
(optional, string, default "/usr/sbin/slapd")
ldapsearch
Full path to the ldapsearch binary. For example, "/usr/bin/ldapsearch".
(optional, string, default "ldapsearch")
config
Full path to a slapd configuration directory or a slapd configuration file. For example, "/etc/ldap/slapd.d" or "/etc/ldap/slapd.conf".
(unique, optional, string, no default)
pidfile
File to read the PID from; read from olcPidFile/pidfile in config if not set.
(optional, string, no default)
user
User name or id slapd will run with. The group id is also changed to this user's gid, unless the group parameter is used to override.
(optional, string, no default)
group
Group name or id slapd will run with.
(optional, string, no default)
services
LDAP (and other scheme) URLs slapd will serve. For example, "ldap://127.0.0.1:389 ldaps:/// ldapi:///"
(unique, optional, string, default "ldap:///")
watch_suffix
Suffix (database backend) that will be monitored for availability. Multiple suffixes can be specified by providing a space seperated
list. By providing one or more suffixes here, the ignore_suffix parameter is discarded. All suffixes will be monitored if left blank.
(optional, string, no default)
ignore_suffix
Suffix (database backend) that will not be monitored for availability. Multiple suffixes can be specified by providing a space
seperated list. No suffix will be excluded if left blank.
(optional, string, no default)
bind_dn
Distinguished Name used to bind to the LDAP directory for testing. Leave blank to bind to the LDAP directory anonymously.
(optional, string, no default)
password
Password used to bind to the LDAP directory for testing.
(optional, string, no default)
parameters
slapd may be called with additional parameters. Specify any of them here.
(optional, string, no default)
stop_escalate
Number of seconds to wait for shutdown (using SIGTERM) before resorting to SIGKILL
(optional, integer, default 15)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 20s.
stop
Stops the resource. Suggested minimum timeout: 20s.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 20s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
EXAMPLE
The following is an example configuration for a slapd resource using the crm(8) shell:
primitive p_slapd ocf:heartbeat:slapd
op monitor depth="0" timeout="20s" interval="60s"
SEE ALSO
http://www.linux-ha.org/wiki/slapd_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_SLAPD(7)