Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-21-2008, 05:24 AM
Loyal Member
 
Posts: 87
Default How to get createTimeStamp ?

Can somebody supply a command to get the value of attribute createTimeStamp ? I can get userPassword or any other attribute by ldapsearch , but cannot get createTimeStamp by the same way . some suggestion ?

Thanks !
__________________
Ask Forever...
Reply With Quote
  #2 (permalink)  
Old 11-21-2008, 05:27 AM
Loyal Member
 
Posts: 87
Default I mean to just get createTimestamp !

I mean to get createTimestamp only ! NOT get all the ldap information . such as , "command | grep createTimeStamp " .
__________________
Ask Forever...
Reply With Quote
  #3 (permalink)  
Old 11-21-2008, 11:34 AM
Zimbra Employee
 
Posts: 580
Default

To see the createTimestamp attribute, you will need to do an authenticated bind. Since you don't provide an example of your ldap search, I can't give you direction past that.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #4 (permalink)  
Old 11-22-2008, 04:37 AM
Loyal Member
 
Posts: 87
Default I always get the value of some attributes by this.

Such as , I can get user's shadow password by the command :

ldapsearch -H ldap://hostname:389 -x -w ldappass -D "uid=zimbra,cn=admins,cn=zimbra" uid=username | grep userPassword

And I need to get the value of attribute createTimeStamp like this .

some suggest ?
__________________
Ask Forever...
Reply With Quote
  #5 (permalink)  
Old 11-22-2008, 07:42 PM
Zimbra Employee
 
Posts: 580
Default

Quote:
Originally Posted by marisu View Post
some suggest ?
Code:
ldapsearch -LLL -x -h freelancer -D "uid=zimbra,cn=admins,cn=zimbra" -W uid=testuser1 createtimestamp
Enter LDAP Password:
dn: uid=testuser1,ou=people,dc=freelancer,dc=lab,dc=zimbra,dc=com
createTimestamp: 20081120005137Z
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.