11-15-2010
# Table Maybe???
hey guys I am creating Users in LDAP.
Problem is when I create a User they need to have a
uidNumber and a
gidNumber and they need to be unique.
the command i issue is:
ldapsearch -x -b 'dc=beasty,dc=netlab,dc=albury,dc=tafe' '(objectclass=posixAccount)' uidnumber|grep uidNumber
which prints out:
uidNumber: 1001
uidNumber: 1064
uidNumber: 1004
uidNumber: 1073
uidNumber: 1002
uidNumber: 1005
Is there a way/script that will automaticaly add in the users uidNumber and not use the same one that had already been created.
so then is will add it to my ldif file
uidNumber:
gidNumber:
Last edited by jmorey; 11-17-2010 at 07:41 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have requirement:
1) Check the record count in table (table in oracle)
2) If records exists generate the file for existing records and wait for some time (Go to sleep mode) and
Again check the record count after 10 min.......... (Loop this process if record count >0).
3) Generate touch... (1 Reply)
Discussion started by: kamineni
1 Replies
2. Shell Programming and Scripting
I have requirement:
1) Check the record count in table (table in oracle)
2) If records exists generate the file for existing records and wait for some time then Go to sleep mode and
Again check the record count after 10 min.......... (Loop this process if record count >0).
3) Generate touch... (1 Reply)
Discussion started by: kamineni
1 Replies
3. Shell Programming and Scripting
Hi
I am having three oracle databases running in three different machine. their ip address is different. from one of the DB am able to access both the databases.(means am able to select values and insert values in to tables individually.)
I need to fetch some data from DB1 table(say DB1 ip is... (2 Replies)
Discussion started by: aemunathan
2 Replies
4. UNIX and Linux Applications
hi there, I am trying to create a stored procedure that i can pass the table name to and it will create a table with that name. but for some reason it creates with what i have defined as the variable name . In the case of the example below it creates a table called 'tname'
for example
... (6 Replies)
Discussion started by: rethink
6 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I'm working with putty on Windows 7 professional and I'd like to know if there's a way to gather specific lines from a pre-existing table and make a new table with that information.
More specifically, I'd like the program to look at a specific column, say column N, and see if any of the... (5 Replies)
Discussion started by: Deedee393
5 Replies
6. Shell Programming and Scripting
I am new to this shell scripting....
I have a file which contains list of users. This files get updated when new user comes into the system.
I want to create script which will give a table containing unique list of users. When I say unique, it means script should match table while parsing... (3 Replies)
Discussion started by: dchavan1901
3 Replies
7. UNIX and Linux Applications
I have an application that collect data from 10 server every minutes and stored to mysql db,. there are about 10K record from each server on every minutes. that data will need to stored in 1 month.
Which ones is better, create single table for all servers and put field to identified data... (3 Replies)
Discussion started by: before4
3 Replies
8. UNIX and Linux Applications
hi,
i need to copy one table with data into another table,
right now am using
create table table1 as select * from table2
i want the constraints of table1 to be copied to table2 also , can anyone give me some solution to copy the constraints also, now am using oracle 10.2.0.3.0... (1 Reply)
Discussion started by: senkerth
1 Replies
9. Shell Programming and Scripting
Hello,
I need some help to reformat this table-by-row to matrix?
infile:
site1 A:o,p,q,r,s,t
site1 C:y,u
site1 T:v,w
site1 -:x,z
site2 A:p,r,t,v,w,z
site2 C:u,y
site2 G:q,s
site2 -:o,x
site3 A:o,q,s,t,u,z
site3 C:y
site3 T:v,w,x
site3 -:p,routfile:
SITE o p q r s t v u w x y... (7 Replies)
Discussion started by: yifangt
7 Replies
10. Web Development
Bootstrap is great; but we have had some issues with Bootstrapped <tables> (and legacy <fieldset> elements) showing annoying, wayward lines. I solved that problem today with this simple jQuery in the footer:
<script>
$(function(){
$('tr, td, fieldset,... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT REDHAT
squid_ldap_group
squid_ldap_group(8) System Manager's Manual squid_ldap_group(8)
NAME
squid_ldap_group - Squid LDAP external acl group helper
SYNOPSIS
squid_ldap_group -b "base DN" -f "LDAP search filter" [options] [ldap_server_name[:port]...]
DESCRIPTION
This helper allows Squid to connect to a LDAP directory to authorize users via LDAP groups.
The program operates by searching with a search filter based on the users login name and requested group, and if a match is found it is
determined that the user belongs to the group.
-b basedn (REQUIRED)
Specifies the base DN under which the groups are located.
-B basedn
Specifies the base DN under which the users are located (if different)
-g Specifies that the first query argument sent to the helper by Squid is a extension to the basedn and will be temporarily added
infront of the global basedn for this query.
-f filter
LDAP search filter used to search the LDAP directory for any matching group memberships. In the filter %u will be replaced by the
user login name (or DN if the -F or -u options are used) and %g by the requested group name.
-F filter
LDAP search filter used to search the LDAP directory for any matching users. In the filter %s will be replaced by the user login
name. If % is to be included literally in the filter then use %%.
-u attr
LDAP attribute used to construct the user DN from the login name and base dn.
-s base|one|sub
search scope. Defaults to 'sub'.
base object only, one level below the base object or subtree below the base object
-D binddn -w password
The DN and password to bind as while performing searches. Required if the directory does not allow anonymous searches.
As the password needs to be printed in plain text in your Squid configuration and will be sent on the command line to the helper it
is strongly recommended to use a account with minimal associated privileges. This to limit the damage in case someone could get
hold of a copy of your Squid configuration file or extracts the password used from a process listing.
-P Use a persistent LDAP connection. Normally the LDAP connection is only open while validating a username to preserve resources at the
LDAP server. This option causes the LDAP connection to be kept open, allowing it to be reused for further user validations. Recom-
mended for larger installations.
-R do not follow referrals
-a never|always|search|find
when to dereference aliases. Defaults to 'never'
never dereference aliases (default), always dereference aliases, only while searching or only to find the base object
-h ldapserver
Specify the LDAP server to connect to
-p ldapport
Specify an alternate TCP port where the ldap server is listening if other than the default LDAP port 389.
-S Strip NT domain name component from usernames (/ or separated)
SQUID CONFIGURATION
This helper is intended to be used as a external_acl_type helper from squid.conf.
external_acl_type ldap_group %LOGIN /path/to/squid_ldap_group ...
acl group1 ldap_group Group1
acl group2 ldap_gorup Group2
NOTES
When constructing search filters it is strongly recommended to test the filter using ldapsearch before you attempt to use squid_ldap_group.
This to verify that the filter matches what you expect.
AUTHOR
This manual page was written by Henrik Nordstrom <hno@marasystems.com>
squid_ldap_group is written by Flavio Pescuma <flavio@marasystems.com> and Henrik Nordstrom <hno@squid-cache.org>, based on prior work in
squid_ldap_auth by Glen Newton <glen.newton@nrc.ca>
KNOWN LIMITATIONS
Max 16 occurances of %s in the -u argument is supported.
QUESTIONS
Any questions on usage can be sent to Squid Users <squid-users@squid-cache.org>, or to your favorite LDAP list/friend if the question is
more related to LDAP than Squid.
REPORTING BUGS
Report bugs or bug-fixes to Squid Bugs <squid-bugs@squid-cache.org> or ideas for new improvements to Squid Developers <squid-dev@squid-
cache.org>
SEE ALSO
squid_ldap_auth(8), ldapsearch(1),
Your favorite LDAP documentation
RFC2254 - The String Representation of LDAP Search Filters,
Squid LDAP Match 7 September 2002 squid_ldap_group(8)