[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug 1367] New ldap attributes and settings for samba.



http://bugs.skolelinux.org/show_bug.cgi?id=1367





--- Comment #13 from Oded Naveh <skilinux@gmail.com>  2009-10-10 23:42:05 ---
(In reply to comment #12)
> ... For updates
> from Etch the LDAP tree would require an update (adding the attribute to
> existing entries).

That may be done like so:

ldapsearch -xZLLLWD 'cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no' \
            -b 'ou=People,dc=skole,dc=skolelinux,dc=no' \
            -s one '(&(objectClass=sambaSamAccount)(!(sambaPwdLastSet=*)))' dn
\
  | sed '/.\+/a\changetype: modify\nadd:sambaPwdLastSet\nsambaPwdLastSet: 2\n-'
\
  > /etc/ldap/fixamba.ldif

ldapmodify -xZWD 'cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no' \
            -f /etc/ldap/fixamba.ldif

For more details see
http://wiki.debian.org/DebianEdu/Documentation/Lenny/Upgrades


-- 
Configure bugmail: http://bugs.skolelinux.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.


Reply to: