Automating slapconfig


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Automating slapconfig
# 1  
Old 11-14-2008
Automating slapconfig

I'm a New Media student working at a small media/tech company that's part of the New Media department at my school. I'm working on a MySQL/LDAP-based system for keeping track of users of our Mac file server. I'm trying to write a script that backs up our LDAP database using the slapconfig command with the -backupdb flag. When I run it, it prompts me for a password for the archive that it's going to create. I need this to run in an automated script, so it can't have user input. How can I send the password directly to slapconfig? I've tried using expect but I don't think it's the right tool for the job. The man page for slapconfig doesn't have anything.

My shell experience is pretty much limited to this project. I had someone who was mentoring me and helping out, but he's at a different campus this year and I can't get in touch with him. Any ideas?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Automating Linux Script

I want to automate the creation or processing of the following: Directory and subdirectory creation for your scenario company Files in each of the directories Symbolic links from 2 subdirectories to their parent directories Setting appropriate file permissions for the directories and... (1 Reply)
Discussion started by: ekglag2
1 Replies

2. UNIX for Dummies Questions & Answers

Automating the FTP get

Hi , I want to pull files from ftp monthly once . The files in ftp has a something like 292_fileto_pull and next month it will be 293_fileto_pull for each month the number keeps increasing. i thought in my script if i can use date and increment the number by it mget *_292_fileto_pull i... (2 Replies)
Discussion started by: vikatakavi
2 Replies

3. Shell Programming and Scripting

Automating

Hi All, I have a shell script that is integrated with a fault management system. It periodically monitors the system and raises an alarm. This script has different functions and it accepts input from us on the console. Is there any way to invoke it using a shell script ? Please advise. ... (2 Replies)
Discussion started by: praviper
2 Replies

4. UNIX for Dummies Questions & Answers

Automating a process

Could any one tell me , how to start a thread here, i just searching for so long. sorry to post in irrelavent here ---------- Post updated at 08:19 AM ---------- Previous update was at 08:00 AM ---------- Hi, I got a requirement to automate the process. We have SLA files, there are... (1 Reply)
Discussion started by: afahmed
1 Replies

5. Shell Programming and Scripting

Automating The process

Hi Guru's, I am trying to write a scripts that will automate my image provisoining process. Scenario: I have Linux Image Hosted on cloud which needs to be provisoned before it can be used. Currently we log onto the image through the putty on windows and connect to linux instance. I... (3 Replies)
Discussion started by: taqvia
3 Replies

6. Shell Programming and Scripting

Automating scsudo

Solaris... I need to automate running of scsudo from another script. However, I've determined that scsudo reads the password from /dev/tty rather than STDIN when the Password prompt appears. I don't have 'expect' or equivalents available - can I automate sending the correct password when... (1 Reply)
Discussion started by: JerryHone
1 Replies

7. UNIX for Advanced & Expert Users

Automating Autosys

Can multiple Autosys jobs be changed with the same parameter at the same time? what scripting do I need? (0 Replies)
Discussion started by: LilyClaro
0 Replies

8. Shell Programming and Scripting

Automating sendmail

Hi there, I am trying to send emails from within a shell script, and I need help. Also I am trying to send attachments from within a shell script. I am using sendmail. Regards (3 Replies)
Discussion started by: JimJim
3 Replies

9. Shell Programming and Scripting

automating password ?

Hi all, I want to write a script which logs into a database (DB2). To do this i need to have a password. This will be done lots and lots of times, so i need to modify the script to automate the response to the password request. How do i this, because at present i do the following: db2 connect... (3 Replies)
Discussion started by: Liamo
3 Replies
Login or Register to Ask a Question
mms(5)							Standards, Environments, and Macros						    mms(5)

NAME
mms - MMS service overview DESCRIPTION
MMS is a distributed removable media management system. It is based on the standard, IEEE 1244, Media Management System (MMS). The current implementation of MMS manages tapes and cartridges in a Sun StorageTek ACSLS tape library and emulated tapes on a file system. MMS is capable of sharing drives among multiple hosts. An important feature of MMS is that it provides a uniform and consistent tape inter- face to its client applications. MMS consists of a media manager (MM) which manages the entire MMS system. Information about the system is maintained by MM in a database. Every library managed by MMS has an active library manager (LM). An LM provides library access and mounting service to MMS. A drive managed by MMS has a drive manager (DM) on each host that has access to the drive. A DM provides device specific operations. A DM also provides label processing. The current implementation supports only ANSI labels. MMS client applications request MM to mount and unmount cartridges and process them after they are mounted. Applications use the Media Man- agement Protocol (MMP) to make requests. A library of client application functions is available. The Solaris implementation of the MMS uses the mmsinit(1M) command to configure and start the MMS service and the mmsadm(1M) command to list and set parameters required by the service. The MMS service instances, as reported by svcs(1), are: mms:wcr watcher mms:db Media Manager PostgreSQL database mms:mm Media Manager The MMS service RBAC (see rbac(5)) authorizations are: o solaris.smf.manage.mms o solaris.smf.value.mms The following are the MMS service configuration data accessible through the service management facility (see smf(5)): config/type Host is media manager or watcher only. Valid values are server or client. manager/host Host name where the media manager is running. manager/port Port the media manager is using. ssl/enabled Media Manager is using SSL. Valid values are true or false. Note the Media Manager needs an SSL RSA certificate and Diffie-Hellman parameters must be 'true'. ssl/verify Media Manager-only value, determines whether two-way authentication is enabled, which requires all Media Manager clients to have SSL RSA certificate. Valid values are are true for two-way authentication and false for one-way authentication. ssl/cert_file Name of file that contains the SSL RSA certificate, private key, and RSA certificate chain. ssl/pass_file Name of file for the private key password phrase if the RSA certificate is encrypted. ssl/dh_file Media Manager-only value, name of file that stores the Diffie-Hellman parameters. ssl/crl_file Name of optional CRL file. ssl/cipher Optional cipher change from EDH-RSA-DES-CBC3-SHA. ssl/peer_file Optional client only, name of file that stores the media manager certificate. The certificate is checked against the certificate returned by SSL_get_peer_certificate() function. The following are the MMS Database fault management resource identifier (FMRI) configuration data: postgresql/bin Directory where the PostgreSQL binaries are located. The directory is specific to the version of PostgreSQL qualified for use by the MMS software. postgresql/data Directory where the PostgreSQL database is located. The default location is a version-specific subdirectory of /var/mms/db. The following are the MMS Media Manager FMRI configuration data: db/host For future use. Set to localhost. db/port Port number to use for PostgreSQL login. The default value is 7656. db/user PostgreSQL user name. The default user name is postgres. db/name Name of PostgreSQL database to which to connect. The default value is mms. option/trace Optional. The Media Manager trace level before connecting to the PostgreSQL database. option/db_reconnect_max_retry Number of times to wait for the database to accept a Media Manager connection. option/db_reconnect_timeout Number of seconds to wait between reconnect tries. The following are the MMS Watcher FMRI configuration data: option/ssi_path Path to ACSLS SSI daemon. option/libapi_path Path to ACSLS API library. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
svcs(1), mmsadm(1M), mmsclient(1M), mmsexplorer(1M), mmsinit(1M), mmsclient_script(4), attributes(5), rbac(5), smf(5) SunOS 5.11 11 Nov 2008 mms(5)