Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Script to check if user can bind, then output to file Post 302594143 by tekster2 on Monday 30th of January 2012 02:25:47 PM
Old 01-30-2012
Script to check if user can bind, then output to file

Hi,

I've been trying to find the answer with no luck. I'm hoping someone can help me. Here's what I need to do:

Run a KSH script that will check:

1. Server (Client) Type (AIX 5.3, 6.1, SUSE, and HP-UX are the possibilities).
2. LDAP.cfg is configured correctly and the ldap client service is running. The way to tell is to see if a user with an account on the LDAP directory can bind from the Server (Client) side. If so, then output to yes.xml.....if no, then output to no.xml. Either way the server name and OS type need to be in the file, separated by commas.

That's it! know the AIX command to check ldap is lsldap -a passwd (ldap_user_id). That's all I know as far as what to do here. I don't need any ldap commands for the other OS types, they are simimar and I can handle that. I just don't know how to collect, validate and output info in a script. Can anyone help me with this?

Thanks in advance,

D

Last edited by tekster2; 01-30-2012 at 03:44 PM.. Reason: added some info
 

10 More Discussions You Might Find Interesting

1. Solaris

How to allow nonroot user to bind to port 80

We are making some changes, and are now using Weblogic as the webserver on one of my projects. I would like for the non root user running Weblogic to be able to bind to port 80. (10 Replies)
Discussion started by: 98_1LE
10 Replies

2. SCO

Need Script to check whether user exists in the remote machine

Hi All, I am new to shell scripting. Can someone let me know, how to check whether the user exists in the remote system? I am building a new unix box and before I proceed installing the appliation , I want to check whether the required users are created in the system . how to do this ?... (1 Reply)
Discussion started by: Srini75
1 Replies

3. UNIX for Dummies Questions & Answers

Script to check for a file, check for 2hrs. then quit

I wish to seach a Dir for a specific file, once the file is found i will perform additional logic. If the file is not found within two hours, i would like to exit. Logically, I'm looking for the best way to approach this Thanks for any assistance in advance. Note: I'm using a C shell and... (2 Replies)
Discussion started by: mmarsh
2 Replies

4. UNIX for Dummies Questions & Answers

check user id before running script

I am looking for the syntax to check which ID is executing script.sh. If the the ID, is not user1 then I want the script to exit and return to command prompt, if it is user1, then I want the script to continue. Any help would be greatly appreciate. Thank you. Chris (3 Replies)
Discussion started by: cpolikowsky
3 Replies

5. Shell Programming and Scripting

Bourne script: Check for root and oracle user

I have 2 separate Bourne shell scripts with 2 questions in Sun O/S & UNIX environment. Question 1: One of the scripts is supposed to be executed by "root" user only but cannot be executed after user executes "su - oracle". How can I check in the script whether the current user is "root" user?... (8 Replies)
Discussion started by: totziens
8 Replies

6. Shell Programming and Scripting

Check if script run by a user directly or via other scripts

Hi, i have a script 'a.sh' that should be called only by certain scripts like b.sh, c.sh Inside a.sh, how can i determine 1) if this script was run directly from command prompt (or scheduler) 2) if called via other scripts? Is there an easy way to get parent process name (not just pid),... (2 Replies)
Discussion started by: ysrinu
2 Replies

7. Shell Programming and Scripting

Script to calculate user's last login to check if > 90 days

I need a script to figure out if a user's last login was 90 days or older. OS=AIX 5.3, shell=Korn Here's what I have so far: ==== #!/usr/bin/ksh NOW=`lsuser -a time_last_login root | awk -F= '{ print $2 }'` (( LAST_LOGIN_TIME = 0 )) (( DIFF = $NOW - $LAST_LOGIN_TIME )) lsuser -a... (3 Replies)
Discussion started by: pdtak
3 Replies

8. Shell Programming and Scripting

*ix script to check port of client server and return output

Hello EveryOne, I am new to *ix. some could help to write a script. Problem :- Have to ssh to so many client and check port or filesystem usage, so thinking to automate using script. What i Need:- when i run script on my Launchpad server, it should Should ask and SSH to user provided... (3 Replies)
Discussion started by: MeFirst
3 Replies

9. Ubuntu

How to check user is in sudoers file or not?

How to check user is in sudoers file or not? or can list out the user that in sudoer file? (1 Reply)
Discussion started by: mampwamp
1 Replies

10. Shell Programming and Scripting

How to check the user input to be valid using shell script?

How to check the user input to be valid using shell script? The valid input is in the format like as follows. 1. It can only have r,w,x or a hyphen and nothing else. 2. ensure the r, w, x are in the correct order. for example: rwxr-xr-x is a valid format. Thanks (5 Replies)
Discussion started by: hyeewang
5 Replies
x2goclient(1)							 X2Go Client (Qt4)						     x2goclient(1)

NAME
x2goclient - Client application to launch server-side X2Go sessions. SYNOPSIS
x2goclient <options> DESCRIPTION
x2goclient is a GUI application for launching server-side X2Go sessions. OPTIONS
x2goclient has the following options: --help-pack Show available pack methods and exit. --no-menu Hide menu-/toolbar (default: false). --maximize Start client maximized (default: false). --hide Hide client (start hidden, default: false). --client-ssh-port Local ssh port (for filesystem export, default: 22). --user Pre-selection of user at client startup (LDAP mode). PROFILING SESSIONS GLOBALLY
You can pre-profile sessions globally using the following options. They will override the options in the session profiles. --command Default command for session startup. --sessionid Pre-selection of session ID at client startup. --ssh-port Use this TCP/IP port for connection (default: 22). --link Set default link type (modem,isdn,adsl,wan or lan, default: adsl). --pack Set default pack method (default: '16m-jpeg'). --quality Set default image quality(0-9, default: 9). --set-kbd Overwrite current keyboard settings, no override by default. --kbd-layout Set keyboard layout (default: 'de'). --kbd-type Set keyboard type (default: pc105/de). --fullscreen Start session in fullscreen mode. --width Start session with this width (default: 800). --sound Activate sound for session, not enabled by default. --sound-system Which soundsystem to use: arts, esd, pulse (default: arts). THIN CLIENT OPTIONS
The following command line options are primarily interesting if x2goclient is used as a login manager on X2Go thin clients. --session=<session-profile-name> Pre-selection of session at client startup. --no-session-edit Disable session editing. --pgp-card Use openPGP Card authentication (default: false). --external-login=<smartcard-logins> Authenticate via SMART card, path to login notification file. --add-to-known-hosts Add DSA/RSA host key fingerprint to .ssh/known_hosts in case of "authenticity of server can't be established". --read-exports-from Specifies a directory where some external mechanism (e.g. script) can notify x2goclient on new block devices (CD/DVDs, USB sticks, etc.). LDAP OPTIONS
In case you want to provide x2goclient session profiles from LDAP use the following options: --ldap Start with LDAP support (disabled by default). --basedn Base DN to search in LDAP. --ldap-server LDAP Server hostname. --ldap-port LDAP Server portnumber (default: 389). --ldap-server1 Failover LDAP Server hostname. --ldap-port1 Failover LDAP Server portnumber (default: 389). --ldap-server2 Failover LDAP Server hostname. AUTHOR
This manual has been written by Mike Gabriel <mike.gabriel@das-netzwerkteam.de> for the X2Go project (http://www.x2go.org). Version 3.99.1.x Feb 2012 x2goclient(1)
All times are GMT -4. The time now is 04:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy