##osx-server

/

      • egomez
        Provisioning is microsofts current vision.
      • In many ways SCCM is a legacy product now.
      • rickardsj joined the channel
      • russeller has quit
      • NexusT joined the channel
      • mosen
        egomez: is it due to everyone being pretty mobile and byod etc?
      • slysir has quit
      • jessep2
        frogor: what are you looking into that might require DYLD_ tricks?
      • zuhl has quit
      • ryn has quit
      • Nick_ZWG has quit
      • ryn joined the channel
      • egomez
        mosen: that and I think most of the models that SCCM does are legacy ways of thinking. Microsoft is moving towards a methodology that is similar to Apple. It will take many more years because Enterprise will bitch and moan but I personally see the writing on the wall.
      • SCCM is heavy, obtuse and slow.
      • frogor
        jessep2: Oh nothing now at this point.
      • jessep2: This was a side investigation after our emergency rally last night.
      • mosen
        egomez: I feel like you relinquish a bit of control though :) oh well
      • frogor
        jessep2: Circumventing AST protections (blocking HTTP) for System python in munki when using NSURL
      • jessep2: We figured out two viable methods last night.
      • jessep2: But I was digging into more of the internals seeing if there was a third/more.
      • egomez
        mosen: sure but some things admins need to care less about.
      • The amount of management is ridiculous.
      • jessep2
        frogor: AST protections? blocking HTTP?
      • egomez
        Kind of agree with gneagle on this more and more. There is desired state but it's often confused with YOUR desired state.
      • mosen
        egomez: In some cases yeah, Ive seen places that were heavily managed
      • chuckfromis joined the channel
      • frogor
        jessep2: 10.11 DP5 implemented what iOS 9 did and changed NSURL APIs to not do HTTP any more without putting override keys in Info.plist
      • egomez
        And once that state is managed it become a chore for the admin and comes across as heavy handed to your users.
      • frogor
        jessep2: .... which is not exactly a do-able solution for /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Info.plist ....
      • given SIP + "don't change /System"
      • Without those override keys, NSURL won't do HTTP in 10.11 DP5+
      • rickardsj has quit
      • But we figured out 2 ways around it.
      • RavenII has quit
      • jessep2
        ah, now i get it
      • :)
      • frogor
      • chuckfromis has quit
      • jessep2: The python objc bridge access to infoBundle returns a *mutable* dict ...
      • ... which if you set it before the other functions are called ... apparently changes the concept of what was loaded from Info.plist in-memory ...
      • (contrary to every. single. piece. of. documentation. about NSBundle mainBundle infoDictionary)
      • Declaration
      • OBJECTIVE-C
      • @property(readonly, copy) NSDictionary *infoDictionary
      • mosen
        readonly is a suggestion
      • frogor
        "A dictionary, constructed from the bundle's Info.plist file, that contains information about the receiver. (read-only)"
      • Heh
      • A very heavily suggested suggestion.
      • jessep2
        huh
      • frogor
        But yeah. It totally works. I've been using LSUIElement = 1 for a while now on it
      • Then Greg tried the AST override key and surprise, it worked
      • er, ATS
      • I knew others worked too, though. You can't change the Dock's name for Python.app (probably because it uses the CFBundle calls) but if you change the application name, the menu will reflect it when it appears / is rendered.
      • chilcote joined the channel
      • Well howdy chilcote
      • chilcote
        'lo
      • what did I do
      • ?
      • frogor
        Aside from rejoin? Nothin :)
      • chilcote
        Ah. Caught me
      • frogor
        Was just perusing through the NSURL security stuff some more from 10.11
      • chilcote
        sounds delightful
      • frogor
        jessep2: 10.11 DP5 also added python 2.7.10
      • Which was amazing
      • Now urllib2 SNI HTTPS support works.
      • No need for pyOpenSSL or any of that other jazz.
      • chilcote
        can I still telnet?
      • frogor
        heheh
      • sure
      • DP6 though ....
      • ;)
      • chilcote
        sweet. That's how I deploy everything
      • frogor
        Me too. I like to calculate TLS in my head. And then manually change all the blocks on the disks.
      • chilcote
        in seriousness, I need to start testing netboot with ElCrap.... from what I'm hearing we might have to change some things
      • mosen
        you would do that frogor, showoff :)
      • frogor laughs
      • frogor
        chilcote: Oh the subnet stuff or SIP or all of the above?
      • *subnet bless
      • chilcote
        the subnet stuff. Hope ip helpers will still work
      • frogor
        ip helpers do work
      • That's actually Apple's preferred method
      • chilcote
        Well OK then. Problem solved :)
      • egomez
        So far NetBoot is perfect on 10.11.
      • chilcote
        $oldjob used bless extensively, due to a cranky dhcp network guy who refused to add helpers
      • egomez
        With ip helpers.
      • Bless does still work though
      • frogor
        chilcote: Yeah - at $oldjob, anyone who has to bless to an IP outside of the local subnet? GOOD LUCK
      • chilcote
        that's exactly it. I had a python agent that was called, and would pass the IP of the netboot server, along with the image requested, to nvram. On netboot, the automation pulled the image info from nvram and restored it and booted back into the system.
      • frogor
        But if it's an IP within the subnet / normal broadcast discovery (with ip helper passthrough to real IP), then you're fine
      • chilcote
        It was pretty smooth, if I may say so myself
      • all callable from a web portal
      • Good luck to them now!
      • frogor
        Well - and even then, I think the issues only happen when bless is called from non-Recovery.
      • Like from an already imaged machine that you want to netboot to reimage?
      • Yeah
      • Problem doing from within the OS
      • If SIP is not disabled
      • But a clean box or you're booted into recovery already? Should be ok.
      • chilcote
        Yeah, that won't work for them any more.
      • Not from recovery
      • it was fully automated. No interaction. User punched a few buttons on the portal, and 10 minutes later they got an IP to log into, with the OS they requested.
      • frogor
        Yeah, because recovery is missing python and all that fun stuff. You'd need a custom netboot image ... on your local subnet ...
      • sounds like they're in for pain ;)
      • chilcote
        that's what we used-- a custom netboot. All it did was run a shell script.
      • Restore, reboot
      • rinse, repeat
      • but it required the long form bless command. No helpers. Heh
      • frogor
        Whoops. Time to get on the road. Later :)
      • chilcote
        ok I'm out again, later
      • chilcote has quit
      • Branes
        https://simbimbo.wordpress.com/2015/07/24/well-... <- 96 new MacBook Pros in a single rack.
      • RavenII joined the channel
      • Q3A joined the channel
      • CrypticSquared joined the channel
      • slysir joined the channel
      • mosen
        ya take one down and ... 95 macbook pros in the rack
      • Branes
        Well, they're three to a drawer, so ...
      • Very impressed with their design idea to keep the lids wedged open.
      • ryn is now known as rynafk
      • slysir has quit
      • pknz joined the channel
      • bruienne_ joined the channel
      • jessep2_ joined the channel
      • chuckfromis joined the channel
      • RavenII has quit
      • chuckfromis has quit
      • corey84__ joined the channel
      • dwurster joined the channel
      • dwurster has quit
      • halloweenhead joined the channel
      • halloweenhead has quit
      • eholtam_ joined the channel
      • dwurster joined the channel
      • dwurster has quit
      • pknz joined the channel
      • Matto-NZ has quit
      • eholtam_ has quit
      • rderewianko joined the channel
      • BrianBlaze420 has quit
      • Matto-NZ joined the channel
      • tsuter joined the channel
      • mrskelltin joined the channel
      • mrskellt1n joined the channel
      • mrskellt1n has quit
      • mrskelltin has quit
      • gcash joined the channel