11-14-2007
format of the files
Hi - thanks for the input:
THe user file looks like ( a chunk of it ):
060606ab
12345678910
110maryland
123thebestfather
1superman1
22221111333_1234567
And the ldif file ( a section of it ) looks like:
dn: uid=MYFILE1,ou=someou,o=test.com
21tCGX2RdpxnkaJU0mI/BC0jdaBBbUt8gjnRxAhMU2
authpassword;orclsomepwd: {ABC}a2F4=
businesscategory: SomeCategory
createtimestamp: 2007070911234z
creatorsname: cn=someload
modifiersname: cn=someoad
modifytimestamp: 20070709181203z
objectclass: top
objectclass: someUser
orclguid: ABCDFF4AD107
orclnormdn: uid=myid1,ou=someconsumer,o=vz.com
pwdchangedtime: 20070709181203z
uid: MYFILE1
userpassword: ABCDRFGEmBXrHCKZa2F4=
canswer: Hello
cinkid: MYFILE1
cquestion: What is my mother's maiden name
cusergroup: somecustomer
cuserstatus: 0
Actually if a uid in the txt file exist in the ldif file, I want to print dn, cquestion, and userstatus
server information: sun os 5.9
it has perl version 5.6.1
any script/program such as shell script, perl script using awk/sed/etc would help me a lot, I appreciate ...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all, I'm new to shell scripting and want to make a script that I can write to log the users logging on and off the a unix system.
I have had a good look over the past few days to crack it, I think I am getting close.
I want a script that runs an infinite loop to check every 5 seconds... (14 Replies)
Discussion started by: noodlesoup
14 Replies
2. Shell Programming and Scripting
could you please find a solution for this
script that checks if any of a list of users given on the command line is logged in. For each user the script should say whether this user is logged in or not. The script prints an error message if no parameter is given. And ask the user to enter a name... (3 Replies)
Discussion started by: anything
3 Replies
3. OS X (Apple)
Hello everyone,
Not sure if this is the right place, but OS X isn't your standard Unix, so I figured here would be best. I am looking at creating a script that will be interactive that admins can run to create users.
Now, 10.4 uses netinfo database and netinfo manager to handle it's users. ... (3 Replies)
Discussion started by: tlarkin
3 Replies
4. Shell Programming and Scripting
Hello,
I am new to Unix and shell scripting. I am trying to find unowned files and groups on my servers. I know, i could use the below command to find it on individual server.
#find / -nouser -o -nogroup -print
But I was wondering, if someone could help with a shell script so that I can... (2 Replies)
Discussion started by: ut916
2 Replies
5. Shell Programming and Scripting
could you please find a solution for this:
I need to write a shell script which checks after every minute whether a friend has logged in or not.The script should report whether that person has logged in along with the amount of time the person was late in logging in.
I have no idea how to... (2 Replies)
Discussion started by: blunderblitz
2 Replies
6. Shell Programming and Scripting
hi I need a shell script which runs perpetually in background and monitors different aspects of different users on different files and their usages
for example say there r 3 users
so i want when they log in i.e. their log in time and their file access, modify and change log of each file of a... (3 Replies)
Discussion started by: rrd1986
3 Replies
7. Shell Programming and Scripting
echo -e "Enter in a username : \c"
read username
grep "^$username:" /etc/passwdWhat I'm trying to do is take in a username from my script and I need to be able to check if that username already exists. If it does the script should display a message saying that the user already exists and exit.
... (2 Replies)
Discussion started by: shadowcat
2 Replies
8. Solaris
Hi admins,
I am trying to run a script to add users on solaris with password:
I am using crypt for passwords:
The part of my scripts is as below:
if ; then
echo "$username exists!"
exit 1
else
pass=$(perl -e 'print... (5 Replies)
Discussion started by: snchaudhari2
5 Replies
9. BSD
I want to create a shell script for a menu selection consisting of users defined on the machine. To an administrator having the privileges, the selection menu will look as follows:
Select the user you want to define the variables for:
1) my-username-1
2) my-username-2
etc
Then there would be a... (7 Replies)
Discussion started by: figaro
7 Replies
10. Shell Programming and Scripting
for UserName in `cat users` ; do useradd -d /u02 -s /usr/libexec/openssh/sftp-server -G ftp-users $UserName ;
PassWord=$( echo $( tr '' '' <<< ${UserName:0:1} )${UserName:1} ) ;
echo "$PassWord@123" | passwd $UserName --stdin ; done
can some one explain what the bold text do
Please use... (5 Replies)
Discussion started by: James0806
5 Replies
LEARN ABOUT DEBIAN
lfc-listusrmap
LFC-LISTUSRMAP(1) LFC Administrator Commands LFC-LISTUSRMAP(1)
NAME
lfc-listusrmap - query about a given user or list all existing users in virtual uid table
SYNOPSIS
lfc-listusrmap [ --uid uid ] [ --user username ]
DESCRIPTION
lfc-listusrmap queries about a given user or lists all existing users in virtual uid table.
This function requires ADMIN privilege.
OPTIONS
--uid uid
specifies the Virtual User Id.
--user username
specifies the user name.
EXAMPLES
lfc-listusrmap --uid 5678
5678 /DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=Jean Dupond
lfc-listusrmap --user "/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=Jean Dupond"
5678 /DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=Jean Dupond
lfc-listusrmap
5678 /DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=Jean Dupond
6789 /DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=Luc Martin
EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed.
SEE ALSO
Castor_limits(4), lfc_getusrbynam(3), lfc_getusrbyuid(3)
LFC
$Date: 2007/12/13 06:15:14 $ LFC-LISTUSRMAP(1)