Home > openldap > wrong attributeType while updating sambaPwdLastSet

wrong attributeType while updating sambaPwdLastSet

March 21Hits:2
Advertisement

I'm trying to reset the password expiry for a user (really set up a semi-automatic process for doing so) and it's making me cry:

server is openldap slapd: 2.4.28-1.1ubuntu4.2

$ ldapsearch -x -b dc=internal,dc=brazzers,dc=com uid=jenna sambaPwdLastSet sambaPwdMustChange # jenna, People, internal.brazzers.com dn: uid=jenna,ou=People,dc=internal,dc=brazzers,dc=com sambaPwdLastSet: 1395420463 sambaPwdMustChange: 1398098896 

Testing the output:

$ cat <<EOF dn: uid=jenna,ou=People,dc=internal,dc=brazzers,dc=com changetype: modify replace: sambaPwdLastSet  sambaPwdLastSet: $(date -u +%s) - replace: sambaPwdMustChange sambaPwdMustChange: $(date -u -d "+1 month" +%s) -  EOF 

Results in:

dn: uid=jenna,ou=People,dc=internal,dc=brazzers,dc=com changetype: modify replace: sambaPwdLastSet  sambaPwdLastSet: 1395421165 - replace: sambaPwdMustChange sambaPwdMustChange: 1398099565 - 

OK, let's do this:

$ cat <<EOF | ldapmodify -D cn=admin,dc=internal,dc=brazzers,dc=com -W dn: uid=jenna,ou=People,dc=internal,dc=brazzers,dc=com changetype: modify replace: sambaPwdLastSet  sambaPwdLastSet: $(date -u +%s) - replace: sambaPwdMustChange sambaPwdMustChange: $(date -u -d "+1 month" +%s) -  EOF Enter LDAP Password:  ldapmodify: wrong attributeType at line 4, entry "uid=jenna,ou=People,dc=internal,dc=brazzers,dc=com" 

What? How could it be wrong?

Answers

ARGH! Another attack of the trailing spaces!

I had a trailing space on replace: sambaPwdLastSet just like:

"wrong attributetype" when using ldapadd

Tags:openldap, ldif

Related Articles

  • wrong attributeType while updating sambaPwdLastSetMarch 21

    I'm trying to reset the password expiry for a user (really set up a semi-automatic process for doing so) and it's making me cry: server is openldap slapd: 2.4.28-1.1ubuntu4.2 $ ldapsearch -x -b dc=internal,dc=brazzers,dc=com uid=jenna sambaPwdLastSet

  • CRUD API: How do you specify which fields to update?September 13

    Let's say you have some kind of data structure, which is persisted in some kind of database. For simplicity, let's call this data structure Person. You are now tasked to design a CRUD API, which allows other applications to create, read, update and d

  • DynamoDB - Update item by GSI (PHP)January 21

    I'm trying to update an item using a Global Secondary Index. My table definition is listed below. I am new to DynamoDb. $response = $this->client->createTable([ 'TableName' => 'rawproducts_products', 'AttributeDefinitions' => [ [ 'AttributeNam

  • How To Beat Google's 'Brandy' UpdateMarch 8

    The Google update of the 17th-20th February 2004 (nicknamed 'Brandy' by WebmasterWorld) resulted in major changes in the results the search engine returns. The 'Brandy' update seems to have incorporated some pre-'Florida' results (another major updat

  • Updated Flash Resource Manager Application AvailableApril 23

    Still catching up after my holiday, but Mike Chambers (Macromedia) has released an update to his Flash Resource Manager application which he initially released on April 7th. The application in case you didn't know about it allows easy viewing of the

  • Rapid DNS Updates in SeptemberJuly 13

    In a post making its way across the Internet community quickly, Matt Larson of VeriSign's Naming and Directory Services (VNDS), has confirmed his organization will begin publishing registrar's domain name changes every five seconds starting on Septem

  • PEAR::Calendar updatedAugust 16

    Updated PEAR::Calendar today with v0.52, mainly containing Lorenzo's hard work (many thanks!). Reminded again how important it is to have a decent PHP unit test framework (plus writing tests in the first place) – would be more or less impossible to m

  • ColdFusion MX 6.1 Updater RELEASED!!!!August 25

    Finally! no more battling tons of hot fixes and bugs "workarounds". Macromedia released the CF MX 6.1 updater today! So if you have a server (production or development) Click on the link above to grab your copy. What's in the new updater? Check

  • Color Scheme Generator updatedDecember 1

    The color-scheme generator that used to be at pixy.cz has been updated with a new version, now permanently housed at www.wellstyled.com/tools. I like it much better – it's more intuitive, it looks cleaner, AND you can "save" or bookmark the colo

  • Keeping FreeBSD UpdatedDecember 9

    Nice article by Richard Bejtlich on maintaining your FreeBSD systems. It bases itself on the 5.2.1 release and the author plans to update this How To for keeping current with non-OS applications as well. Read on here. Also found this complimentary ar

  • Updated Web Page Analyzer

    Updated Web Page AnalyzerMarch 29

    It's great to see Andy King has announced an update to his excellent, free page analysis tool at WebsiteOptimization.com. For anyone who hasn't stumbled across it before, this is an online tool that takes a URL from you, and returns a nicely formatte

  • Managing Open Source Installation and UpdatesMay 26

    In the same theme of mixed commercial and free software – LAMP and Java developers and administrators may find a welcome convenience in leanring about blueglue from Open Logic. blueglue is sold as a commercial solution to deal with the challenge of m

  • The WordPress Security UpdateAugust 18

    Stefan Esser over at the PHP Security Blog is not happy. He's just written a blog posted titled WordPress – developers totally nuts claiming that only hours after releasing version 1.5.2, the developers patched some additional security flaws and re-u

  • Google Update UpdateOctober 20

    Yes, Google is updating, changing, shifting, call it anything you like but don't call it dancing. So what's happening? Search results are shifting around like mad, that's what's happening. What does it mean? I can't tell you until it stops moving, wh

  • Profiting Without Frequently Updated ContentFebruary 24

    Someone asked me today if I thought it was possible to run a successful website that does not get updated frequently. My answer: absolutely! There are many types of content sites out there, discounting blogs and forums the two most common types are w

  • Updated IE7 Beta 2 PreviewMarch 20

    While the "official" Beta 2 release of Internet Explorer 7 still awaits the upcoming Windows Vista Beta 2, Microsoft has publicly announced an updated build of its "Beta 2 Preview". Although official word on the changes in this new bui

  • Yahoo! UI and DP Libraries UpdatedMay 10

    Yahoo! has announced the first updates to the Yahoo! UI Library and the Yahoo! Design Patterns Library (see JavaScript Libraries and Patters: Yahoo! Does AJAX). As expected, the update to the Yahoo! UI Library introduces a handful of new JavaScript-p

  • IE 7 Update for Pirated Windows Users

    IE 7 Update for Pirated Windows UsersOctober 11

    The Microsoft Internet Explorer Weblog has announced that the latest update to Internet Explorer 7 will drop the Windows Genuine Advantage (WGA) validation step from the installer. Although the announcement stops just shy of saying it, the real effec

  • ColdFusion 8 Updater 1 releasedApril 4

    After a long beta cycle, ColdFusion 8.0.1 is now available! The updater incorporates a heap of fixes and enhancements which you can read about in the release notes (PDF) and FAQ. Notably, 64-bit support has been added to almost every platform – a fea

  • The Week in ColdFusion: 2-8 April: updater overloadApril 11

    Obviously the big news this week was that the first ColdFusion updater, 8.0.1, was released – and was subsequently re-announced by seemingly every blog in MXNA and Fullasagoog! In between all the announcements were some posts exploring the new featur

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.570 s.