Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #5196
Closed
Open
Issue created Oct 21, 2016 by bmortier@bmortierMaintainer

webservice: object is modified instead of created

When creating an org with:

$odata['organization']['o'] = 'xxx';
$odata['organization']['description'] = ...
$odata['organization']...

$fdresult = $client->setfields($session_id, 'organization', NULL, $odata);

Note that I'm using 'NULL' because I want to create a new org.

In LDAP logs I get this 'new' string to appear :

... filter="(&(?roleOccupant=new)(&(objectClass=organizationalRole)(!(objectClass=simpleSecurityObject))))"
...
filter="(&(?member=new)(objectClass=groupOfNames))"
...
conn=18049 op=1 do_search: invalid dn: "new"

(Once again I do not get zero error back from the webservice about this...)

The final result is if the organization 'o=xxx' already exists, it is somehow modified instead of created as asked (ie: it should raise an error that this org entry already exists).

Oct 21 11:00:06 fd slapd[20551]: conn=18049 op=7 MOD dn="o=xxx,ou=organizations,dc=ow2,dc=org"
Oct 21 11:00:06 fd slapd[20551]: conn=18049 op=7 MOD attr=objectClass fdCommunityMembershipType fdCommunityMembershipActive fdCommunityMembershipHidden fdCommunityStartDate fdOrganizationAlternateAddress fdOrganizationAlternateCity fdOrganizationAlternateCountry
Oct 21 11:00:06 fd slapd[20551]: conn=18049 op=7 RESULT tag=103 err=0 text=

(from redmine: issue id 5196, created on 2016-10-21, closed on 2016-11-03)

  • Custom Fields:
    • Bug in version: 1.0.16
    • Support contract: None
Assignee
Assign to
Time tracking