Sponsored Content
Full Discussion: Sol10 - OpenLDAP Auth
Operating Systems Solaris Sol10 - OpenLDAP Auth Post 302764057 by Panzerkampfwagn on Thursday 31st of January 2013 09:55:28 AM
Old 01-31-2013
Hey, thx for the answer. Geco field (Value=ldapuser GB) is still there and and entry for shadowLastChange,shadowMax,shadowWarning, sn, too Smilie I didnīt post it. Srry my fault.

---------- Post updated at 01:24 AM ---------- Previous update was at 01:12 AM ----------

Okay, is maybe value for the shadow pw missing ({CRYPT} blablabla)? if i do ldaplist -l passwd ldapuser on Sol10 Client:

#ldaplist -l passwd ldapuser

Sol10Serv:> dn: uid=ldapuser,ou=People,dc=example,dc=de
uid: ldapuser
cn: ldapuser GB
givenName: ldap user
sn: GB
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
shadowLastChange: 15622
shadowMax: 168
shadowWarning: 7
loginshell: /usr/bin/bash
gidnumber: 1
gecos: ldapuser GB
homeDirectory: /export/home/ldapuser
uidnumber: 5000

---------- Post updated at 09:55 AM ---------- Previous update was at 01:24 AM ----------

DAM!!

i got some new grey hairs now... not funny Smilie It works now!!11! If im really sure, what i did, i will post a howto here for other guys...

thx for reading Smilie
 

10 More Discussions You Might Find Interesting

1. Solaris

stack space in sol10

we have a solaris 10 box (V440) we are looking for a way to set the stack size for all processes on the system. we know we can use ulimit -s $ ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 8192 coredump(blocks) unlimited... (2 Replies)
Discussion started by: robsonde
2 Replies

2. Solaris

sol10 on x86 -> network issue

i've decided to try out an x86 system with sol10. however, i can't get my 3com 3C905TX-B to work. i checked the hcl and it says it runs natively. anyone having similar issues or seen a fix for this? i'll be happy to supply more info. Note: i do not see this in /etc/path_to_inst. so it looks like... (1 Reply)
Discussion started by: pupp
1 Replies

3. UNIX and Linux Applications

mysql on sol10 x86

i installed the x86 version (32-bit) of mysql community db. looks like the initial install of the pkg was good. however, i've got a few questions here. after the install, i run `/usr/local/mysql/scripts/mysql_install_db --user=mysql` to generate the db's and tables. it looks like a clean install... (0 Replies)
Discussion started by: pupp
0 Replies

4. Solaris

Sol10 on primepower 850

I've got a console that seems to be hung. all other services (ip, etc) work perfectly. in fact, its still in production... we just don't have console access. so i there are two consoles on this guy.. scfc0 and scfc1. using iompadm from fujitsu, this is what i got: # ./iompadm -c FJSVscf3 info... (1 Reply)
Discussion started by: pupp
1 Replies

5. Solaris

machine to learn Sol10

Hi What kind of Sun machine, you recommend to buy in order to learn Solaris 10 administration ? I need machine where I can train the following sol10 features : - zfs - solstice suite (RAID 0+1, RAID 5, RAID 1 + 0 ) - containers Please advice sth for reasonable price. thx for help. (8 Replies)
Discussion started by: presul
8 Replies

6. Solaris

Help with Sol10 boot error

I just ran the latest ( 9-27-11) solaris patch set on my sparc testbed ( ultra80 ). Brought down to single user mode and ran patches as I always have. When I rebooted it after completion it came up with the following error on boot. "Fast Access Data MMU Miss". I can boot to a cdrom in... (5 Replies)
Discussion started by: bow tie klr
5 Replies

7. Solaris

t2000 Sol10 installation failure

Hi folks, I've searched as much as possible with regards to the installation of Solaris 10 and this error that I keep getting no matter which arguments I use. sol-10-u9-ga-sparc-dvd.iso sc> showhost Sun-Fire-T2000 System Firmware 6.7.12 2011/07/06 20:03 Host flash versions: OBP... (3 Replies)
Discussion started by: dnetcrawler
3 Replies

8. Solaris

Cannot tell what is filling up root (/) partition on Sol10

I can see that my root partition is down to single-digit GB free out of 134GB root partition on a larger server with many SAN, NFS, LOFS mounts etc mounted at the root (/) partition. How can I specifically tell which directories is causing the most utilization in my root (/) partition? (3 Replies)
Discussion started by: ckmehta
3 Replies

9. Solaris

Sol10 + OpenLDAP = excessive logging & full file system??!!

Hello all, new to this forum (member of many others). Hopefully I can find help here. SERVER: Brand new server Oracle Enterprise SPARC T4-1 Loaded Solaris SPARC 10 u10, patched to 147440-27 Loaded OpenLDAP v2.4.30 Loaded Berkley DB 4.7.25.NC Loaded OpenSSL 1.0.1c Note: All packages are... (2 Replies)
Discussion started by: Wraith_G2IC
2 Replies

10. Solaris

FTPD ls problem on Sol10

Hey guys, i'm pretty sure this is simple enough so i'll go quick. I must be missing something but can't pinpoint it. NOTE: Yes, i should be using proftpd but the architect team is a pain in the butt and it is not possible right now. Sol10 FTP server (zoned) MS vista ftp client. Login... (1 Reply)
Discussion started by: maverick72
1 Replies
SHELLDAP(1p)						User Contributed Perl Documentation					      SHELLDAP(1p)

NAME
Shelldap - A program for interacting with an LDAP server via a shell-like interface DESCRIPTION
Shelldap /LDAP::Shell is a program for interacting with an LDAP server via a shell-like interface. This is not meant to be an exhaustive LDAP editing and browsing interface, but rather an intuitive shell for performing basic LDAP tasks quickly and with minimal effort. SYNPOSIS
shelldap --server example.net [--help] FEATURES
- Upon successful authenticated binding, credential information is auto-cached to ~/.shelldap.rc -- future loads require no command line flags. - Custom 'description maps' for entry listings. (See the 'list' command.) - History and autocomplete via readline, if installed. - Automatic reconnection attempts if the connection is lost with the LDAP server. - It feels like a semi-crippled shell, making LDAP browsing and editing at least halfway pleasurable. OPTIONS
All command line options follow getopts long conventions. shelldap --server example.net --basedn dc=your,o=company You may also optionally create a ~/.shelldap.rc file with command line defaults. This file should be valid YAML. (This file is generated automatically on a successful bind auth.) Example: server: ldap.example.net binddn: cn=Manager,dc=your,o=company bindpass: xxxxxxxxx basedn: dc=your,o=company tls: yes tls_cacert: /etc/ssl/certs/cacert.pem tls_cert: ~/.ssl/client.cert.pem tls_key: ~/.ssl/private/client.key.pem server Required. The LDAP server to connect to. This can be a hostname, IP address, or a URI. --server ldaps://ldap.example.net -H ldaps://ldap.example.net binddn The full dn of a user to authenticate as. If not specified, defaults to an anonymous bind. You will be prompted for a password. --binddn cn=Manager,dc=your,o=company -D cn=Manager,dc=your,o=company basedn The directory 'root' of your LDAP server. If omitted, shelldap will try and ask the server for a sane default. --basedn dc=your,o=company -b dc=your,o=company tls Enables TLS over what would normally be an insecure connection. Requires server side support. tls_cacert Specify CA Certificate to trust. --tls_cacert /etc/ssl/certs/cacert.pem tls_cert The TLS client certificate. --tls_cert ~/.ssl/client.cert.pem tls_key The TLS client key. Not specifying a key will connect via TLS without key verification. --tls_key ~/.ssl/private/client.key.pem cacheage Set the time to cache directory lookups in seconds. By default, directory lookups are cached for 300 seconds, to speed autocomplete up when changing between different basedns. Modifications to the directory automatically reset the cache. Directory listings are not cached. (This is just used for autocomplete.) Set it to 0 to disable caching completely. timeout Set the maximum time an LDAP operation can take before it is cancelled. debug Print extra operational info out, and backtrace on fatal error. version Display the version number. SHELL COMMANDS
cat Display an LDIF dump of an entry. Globbing is supported. Specify either the full dn, or an rdn. For most commands, rdns are local to the current search base. ('cwd', as translated to shell speak.) You may additionally add a list of attributes to display. Use '+' for server side attributes. cat uid=mahlon cat ou=* cat uid=mahlon,ou=People,dc=example,o=company cat uid=mahlon + userPassword cd Change directory. Translated to LDAP, this changes the current basedn. All commands after a 'cd' operate within the new basedn. cd change to 'home' basedn cd ~ change to the binddn, or basedn if anonymously bound cd - change to previous node cd ou=People change to explicit path below current node cd .. change to parent node cd ../../ou=Groups change to node ou=Groups, which is a sibling to the current node's grandparent Since LDAP doesn't actually limit what can be a container object, you can actually cd into any entry. Many commands then work on '.', meaning "wherever I currently am." cd uid=mahlon cat . clear Clear the screen. copy Copy an entry to a different dn path. All copies are relative to the current basedn, unless a full dn is specified. All attributes are copied, then an LDAP moddn() is performed. copy uid=mahlon uid=bob copy uid=mahlon ou=Others,dc=example,o=company copy uid=mahlon,ou=People,dc=example,o=company uid=mahlon,ou=Others,dc=example,o=company aliased to: cp create Create an entry from scratch. Arguments are space separated objectClass names. Possible objectClasses are derived automatically from the server, and will tab-complete. After the classes are specified, an editor will launch. Required attributes are listed first, then optional attributes. Optionals are commented out. After the editor exits, the resulting LDIF is validated and added to the LDAP directory. create top person organizationalPerson inetOrgPerson posixAccount aliased to: touch delete Remove an entry from the directory. Globbing is supported. All deletes are sanity-prompted. delete uid=mahlon delete uid=ma* aliased to: rm edit Edit an entry in an external editor. After the editor exits, the resulting LDIF is sanity checked, and changes are written to the LDAP directory. edit uid=mahlon aliased to: vi env Show values for various runtime variables. grep Search for arbitrary LDAP filters, and return matching dn results. The search string must be a valid LDAP filter. grep uid=mahlon grep uid=mahlon ou=People grep -r (&(uid=mahlon)(objectClass=*)) aliased to: search list List entries for the current basedn. Globbing is supported. aliased to: ls ls -l ls -lR uid=mahlon list uid=m* In 'long' mode, descriptions are listed as well, if they exist. There are some default 'long listing' mappings for common objectClass types. You can additionally specify your own mappings in your .shelldap.rc, like so: ... descmaps: objectClass: attributename posixAccount: gecos posixGroup: gidNumber ipHost: ipHostNumber mkdir Creates a new 'organizationalUnit' entry. mkdir containername mkdir ou=whatever move Move an entry to a different dn path. Usage is identical to copy. aliased to: mv passwd If supported server side, change the password for a specified entry. The entry must have a 'userPassword' attribute. passwd uid=mahlon pwd Print the 'working directory' - aka, the current ldap basedn. setenv Modify various runtime variables normally set from the command line. setenv debug 1 export debug=1 whoami Show current auth credentials. Unless you specified a binddn, this will just show an anonymous bind. TODO
Referral support. Currently, if you try to write to a replicant slave, you'll just get a referral. It would be nice if shelldap automatically tried to follow it. For now, it only makes sense to connect to a master if you plan on doing any writes. BUGS
/ LIMITATIONS There is no support for editing binary data. If you need to edit base64 stuff, just feed it to the regular ldapmodify/ldapadd/etc tools. AUTHOR
Mahlon E. Smith <mahlon@martini.nu> perl v5.12.4 2011-11-12 SHELLDAP(1p)
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy