Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap - organizations - missing a migration note for 24.0 #4357

Open
pmauduit opened this issue Oct 23, 2024 · 2 comments
Open

ldap - organizations - missing a migration note for 24.0 #4357

pmauduit opened this issue Oct 23, 2024 · 2 comments

Comments

@pmauduit
Copy link
Member

pmauduit commented Oct 23, 2024

The ldap-account-management in v24.0 expects the georchestraOrg objects from the ou=orgs branch in the LDAP to be also of objectClass=extensibleObject:
https://github.com/georchestra/georchestra/blob/master/ldap-account-management/src/main/java/org/georchestra/ds/orgs/OrgsDaoImpl.java#L239

Not migrating the objects from the LDAP will make the GN synchronization fail, because the Java objects being created will contain half the info (the georchestraOrg objects not being returned by the LDAP query).

@pmauduit
Copy link
Member Author

The LDAP tree can be "fixed" using the following code snippet:

for i in $(ldapsearch -Dcn=admin,dc=georchestra,dc=org \
  -bou=orgs,dc=georchestra,dc=org -w secret -x         \
  -H ldap://georchestra-ldap-svc/                      \
  objectClass=georchestraOrg dn                        \
               | grep '^dn: o=' | cut -d' ' -f2 ) ; do
echo $i ;
cat <<EOF | ldapmodify -H ldap://georchestra-ldap-svc/ -w secret  -Dcn=admin,dc=georchestra,dc=org -x 
dn: ${i}
changeType: modify
add: objectClass
objectClass: extensibleObject

EOF

done

@f-necas f-necas assigned f-necas and unassigned f-necas Oct 24, 2024
@landryb
Copy link
Member

landryb commented Dec 10, 2024

i think this one was fixed by 51f1874 .. no ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy