Oct 23 2008

Netscape Directory Server ldapsearch

Tag:tepezcuintle @ 16:15

SEARCHING FOR ENTRIES USING LDAP SEARCH

You can find entries in your directory using any LDAP client. Most clients provide some form of a search interface that allows you to easily search the directory and retrieve entry information.


Note.
You cannot search the directory unless the appropriate access control has been set in your directory. For information on setting access control in your directory, see

Continua”Netscape Directory Server ldapsearch”


Oct 22 2008

LDAP Reminder: ldap utilities.

Tag:tepezcuintle @ 15:14

ldapmodify and ldapadd utilities

The ldapmodify utility allows you to change entries or add entries to the LDAP directory server from the QSH command shell on your system. It uses the ldap_modify, ldap_add, and ldap_delete application program interfaces (APIs). The ldapadd utility works almost identically to the ldapmodify utility with the exception that the -a flag is turned on automatically.

Format:
Continua”LDAP Reminder: ldap utilities.”


Oct 22 2008

The date command

Tag:tepezcuintle @ 14:00

`date’: Print or set system date and time
=========================================

`date’ with no arguments prints the current time and date, in the
format of the `%c’ directive (described below). Synopses:

date [OPTION]… [+FORMAT]
date [-u|--utc|--universal] [ MMDDhhmm[[CC]YY][.ss] ]

If given an argument that starts with a `+’, `date’ prints the
current time and date (or the time and date specified by the `–date’
option, see below) in the format defined by that argument, which is the
same as in the `strftime’ function. Except for directives, which start
with `%’, characters in the format string are printed unchanged. The
directives are described below.

* Menu:

* Time directives:: %[HIklMprsSTXzZ]
* Date directives:: %[aAbBcdDhjmUwWxyY]
* Literal directives:: %[%nt]
* Padding:: Pad with zeroes, spaces (%_), or nothing (%-).
* Setting the time:: Changing the system clock.
* Options for date:: Instead of the current time.
* Examples of date:: Examples.

********* From the Man Pages *****************************

DESCRIPTION
Display the current time in the given FORMAT, or set the system date.

-d, –date=STRING
display time described by STRING, not `now’

-f, –file=DATEFILE
like –date once for each line of DATEFILE

-I, –iso-8601[=TIMESPEC] output an ISO-8601 compliant date/time string.
TIMESPEC=`date’ (or missing) for date only, `hours’, `minutes’, or `seconds’ for date and time to the indi-
cated precision.

-r, –reference=FILE
display the last modification time of FILE

-R, –rfc-822
output RFC-822 compliant date string

-s, –set=STRING
set time described by STRING

-u, –utc, –universal
print or set Coordinated Universal Time

–help display this help and exit

–version
output version information and exit

Continua”The date command”


Oct 17 2008

Quick tutorial Joe Editor

Tag:tepezcuintle @ 18:30

Getting to Know Joe
Who (or what) is Joe?
Starting Joe
Getting Help
Exiting

Working with Blocks of Text
Mark Beginning
Mark End
Delete
Move
Copy
Write

Making Joe the Default Editor

Quick Reference
Movement
Find and Replace
Block
Deleting
Miscellaneous
Window Control
Macros
File Functions
Exit
Continua”Quick tutorial Joe Editor”


Oct 17 2008

LDAP Search flags

Tag:tepezcuintle @ 15:51

Ldap

ldapsearch Command
Purpose
Opens a connection to an LDAP server, binds, and performs a search using the filter filter.

Syntax
ldapsearch [-a ][-A ][-b basedn][-B][-C][-d][-D ][-e ][-f][-F][-G][-h][-i][-k][-K][-l][-L][-m][-M][-n][-N][-o][-O][-p][-P][-q][-R][-s][-t][-T][-U][-v][-V][-w][-y][-Y][-z ][-Z][-9] filter [attributes...]

where basedn equals the base distinguished name for the search, filter equals the LDAP search filter, options equals any other flags, and attributes equals a whitespace–separated list of attributes to retrieve. If no attribute list is specified, all attributes are retrieved.

Note:
basedn is optional if LDAP_BASEDN is set in the environment.
Description
If the ldapsearch command finds one or more entries, the attributes specified by attrs are retrieved and the entries and values are printed to standard output. If no attrs are listed, all attributes are returned.
Continua”LDAP Search flags”


Oct 15 2008

Open Ldap How To

Tag:tepezcuintle @ 20:17

Open Ldap

Initial Concepts

Basic
Configuration

Address
Book Entries

TLS Link Encryption

phpLDAPadmin
Web Administrator

Email
Client Settings

Many individuals throughout professional organisations will consider
their list of personal and professional contacts as one of their most
important assets. Similarly at home keeping our contact details of
friends, relatives and professional service providers like physicians
is also equally important, however maintaining that contact list across
several computers can be very time consuming; even frustrating if it is
lost.

Using the Lightweight Directory Access Protocol (LDAP) we can configure
a centrally managed address book that can be shared by all the of
computer workstations throughout the network (for many large
organisations this is a fundamental design concept). A central (or
shared) address book allows easy management of all contact details, it
can be backed up and restored very easily, and it can also be made
available through a secure web interface so it can be accessed remotely
from where ever the user may be.

This chapter will detail the procedures necessary to configure the
OpenLDAP (http://www.openldap.org)
directory service that will provide the basis for our address book and
make it available to our network users. We will also look at populating
the address book and provide security access controls so that only
authenticated users can access the information.

Not all email clients are able to write to the address book (although
reading is fine), this is normally due to the functionality of the
email client and not a problem with the directory service. Therefore,
we will also configure the web server with a web based administration
application which will allow full control of the address book; this
also allows the remote access if needed.

The following list of man pages can provide further information to
assist with configuration or debugging requirements.
Continua”Open Ldap How To”


Oct 15 2008

Iplanet Command Line LDAP tutorial

Tag:tepezcuintle @ 14:39

Managing Entries From the Command Line
The command-line utilities allow you to manipulate the contents of your directory.
They can be useful if you want to write scripts to perform bulk management of
your directory, or to test your Directory Server. For example, you might want to
ensure that it returns the expected information after you have made changes to
access control information.
Continua”Iplanet Command Line LDAP tutorial”


Oct 14 2008

Vi searching and replacing text

Tag:tepezcuintle @ 15:43

A>Searching and replacing text
vi has a number of search command. You can search for individual
charaters through to regular expressions.

The main two character based search commands are [ f ] and
[ t ] .

         fc         Find the next character c. Moves RIGHT to the next.
         Fc         Find the next character c. Moves LEFT to the preceding.
         tc         Move RIGHT to character before the next c.
         Tc         Move LEFT to the character following the preceding c.
                    (Some clones this is the same as Fc)
         ;          Repeats the last f,F,t,T command
         ,          Same as ; but reverses the direction to the orginal command.

Continua”Vi searching and replacing text”