PixarAnimationStudios / ruby-jss

ruby-jss provides native ruby access to the REST APIs of Jamf Pro, an enterprise/education tool for managing Apple devices, from jamf.com. The Jamf module provides access to both APIs. Jamf Pro objects are implemented as classes and interact with each other. Authentication tokens, data format and other details are handled under the hood to allow simpler, intuitive automation of Jamf-related tasks.
http://pixaranimationstudios.github.io/jss-api-gem/index.html
Other
98 stars 30 forks source link

Allows users to be added without providing an ldap server. #88

Closed aaron-mmt closed 3 years ago

aaron-mmt commented 3 years ago

See Issue #87

Calling JSS::User.make() with just a name throws NoMethodError on line 171, where it assumes that a valid LDAP server has been provided and the appropriate object fetched. As we are not using the LDAP server integration, this prevents us from creating user objects. This change ignores nil LDAP server values.

glenfarclas17 commented 3 years ago

Doh! My Apologies for not merging this in sooner - other work projects have been insane (well, for over a year now :-) But i'm getting ready to do the next release.

Thanks so much for fixing this! Cheers! -Chris