Swiss Army knife

Stumbled across this. Curl does lots of protocols.

$ curl ldap://localhost:1389/dc=example,dc=com??sub?uid=bjensen
DN: uid=bjensen,ou=People,dc=example,dc=com
	description: bjensen

	uid: bjensen

	facsimileTelephoneNumber: +1 408 555 1992

	objectClass: person
	objectClass: organizationalPerson
	objectClass: inetOrgPerson
	objectClass: posixAccount
	objectClass: top

	givenName: Barbara

	cn: Barbara Jensen
	cn: Babs Jensen

	telephoneNumber: +1 408 555 1862

	sn: Jensen

	roomNumber: 0209

	homeDirectory: /home/bjensen

	uidNumber: 1076

	ou: Product Development
	ou: People

	mail: bjensen@example.com

	l: Cupertino

	gidNumber: 1000

Not exactly LDIF output.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s